chrono: correct the units for the epoch bias
As pointed out by Howard, this is actually 134774 days (* 24 * 3600), and therefore seconds, not 100ns units. Adjust the units to reflect reality. llvm-svn: 290824
This commit is contained in:
parent
8bcade547a
commit
d1c346a43b
|
@ -53,8 +53,7 @@ system_clock::now() _NOEXCEPT
|
||||||
nanoseconds::period>>;
|
nanoseconds::period>>;
|
||||||
|
|
||||||
// The Windows epoch is Jan 1 1601, the Unix epoch Jan 1 1970.
|
// The Windows epoch is Jan 1 1601, the Unix epoch Jan 1 1970.
|
||||||
static _LIBCPP_CONSTEXPR const filetime_duration
|
static _LIBCPP_CONSTEXPR const seconds nt_to_unix_epoch{11644473600};
|
||||||
nt_to_unix_epoch{11644473600};
|
|
||||||
|
|
||||||
FILETIME ft;
|
FILETIME ft;
|
||||||
#if _WIN32_WINNT >= _WIN32_WINNT_WIN8
|
#if _WIN32_WINNT >= _WIN32_WINNT_WIN8
|
||||||
|
|
Loading…
Reference in New Issue