diff options
| author | Stefan Boberg <[email protected]> | 2021-10-19 16:34:28 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-19 16:38:39 +0200 |
| commit | 7bacd69310996263280f5695584801dcd243a73a (patch) | |
| tree | 810ff390b697a8a7bab1d9a1492459fd17aa2fc8 /zencore/include | |
| parent | zenserver-test: Fixed up zcache tests (diff) | |
| download | zen-7bacd69310996263280f5695584801dcd243a73a.tar.xz zen-7bacd69310996263280f5695584801dcd243a73a.zip | |
cb: Implemented DateTime::Now() and fixed DateTime/TimeSpan string formatting
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/compactbinary.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zencore/include/zencore/compactbinary.h b/zencore/include/zencore/compactbinary.h index ab01402f8..06331c510 100644 --- a/zencore/include/zencore/compactbinary.h +++ b/zencore/include/zencore/compactbinary.h @@ -43,6 +43,8 @@ public: inline uint64_t GetTicks() const { return Ticks; } + static DateTime Now(); + int GetYear() const; int GetMonth() const; int GetDay() const; |