This commit is contained in:
parent
c1a1242398
commit
5d281e0fd0
@ -83,6 +83,6 @@ auto unix_time_to_windows_time(std::uint64_t unix_time) -> std::uint64_t {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto windows_time_to_unix_time(std::uint64_t win_time) -> std::uint64_t {
|
auto windows_time_to_unix_time(std::uint64_t win_time) -> std::uint64_t {
|
||||||
return (win_time * WIN32_TIME_NANOS_PER_TICK) - WIN32_TIME_CONVERSION;
|
return (win_time - WIN32_TIME_CONVERSION) * WIN32_TIME_NANOS_PER_TICK;
|
||||||
}
|
}
|
||||||
} // namespace repertory::utils::time
|
} // namespace repertory::utils::time
|
||||||
|
Loading…
x
Reference in New Issue
Block a user