aboutsummaryrefslogtreecommitdiff
path: root/zencore/compactbinary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zencore/compactbinary.cpp')
-rw-r--r--zencore/compactbinary.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/zencore/compactbinary.cpp b/zencore/compactbinary.cpp
index 86ee6e022..494b45581 100644
--- a/zencore/compactbinary.cpp
+++ b/zencore/compactbinary.cpp
@@ -52,18 +52,18 @@ static constexpr uint64_t
GetPlatformToDateTimeBiasInSeconds()
{
#if ZEN_PLATFORM_WINDOWS
- const uint64_t PlatformEpochYear = 1601;
+ const uint64_t PlatformEpochYear = 1601;
#else
- const uint64_t PlatformEpochYear = 1970;
+ const uint64_t PlatformEpochYear = 1970;
#endif
- const uint64_t DateTimeEpochYear = 1;
+ const uint64_t DateTimeEpochYear = 1;
return uint64_t(double(PlatformEpochYear - DateTimeEpochYear) * 365.2425) * 86400;
}
DateTime
DateTime::Now()
{
- static const uint64_t EpochBias = GetPlatformToDateTimeBiasInSeconds();
+ static const uint64_t EpochBias = GetPlatformToDateTimeBiasInSeconds();
static const uint64_t SecsTo100nsTicks = int64_t(10e9 / 100);
#if ZEN_PLATFORM_WINDOWS
@@ -71,7 +71,7 @@ DateTime::Now()
GetSystemTimeAsFileTime(&SysTime);
return DateTime{(EpochBias * SecsTo100nsTicks) + (uint64_t(SysTime.dwHighDateTime) << 32) | SysTime.dwLowDateTime};
#else
- int64_t SecondsSinceUnixEpoch = time(nullptr);
+ int64_t SecondsSinceUnixEpoch = time(nullptr);
return DateTime{(EpochBias + SecondsSinceUnixEpoch) * SecsTo100nsTicks};
#endif
}