diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-11-13 12:30:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-11-13 12:30:38 +0100 |
| commit | a1d0ec67f0ab65b61140d28cfb726812c1604cdc (patch) | |
| tree | b423f3bdc4e7a33e7a5fff6d83de51a6349bdf5b /src/local_time.h | |
| parent | f5f1ae4c166b99409ca36ab14d53a9bafb001c49 (diff) | |
Add LocalTime::as_time_t().
Diffstat (limited to 'src/local_time.h')
| -rw-r--r-- | src/local_time.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/local_time.h b/src/local_time.h index c76b876c..a213d0cc 100644 --- a/src/local_time.h +++ b/src/local_time.h @@ -96,6 +96,7 @@ public: * 2013-01-05T18:06:59 or 2013-01-05T18:06:59.123 */ std::string as_string(bool with_millisecond = false, bool with_timezone = true) const; + time_t as_time_t() const; /** @return The date in the form YYYY-MM-DD */ std::string date () const; |
