Function fromSysTime [src]
A file time is a 64-bit value that represents the number of 100-nanosecond
intervals that have elapsed since 12:00 A.M. January 1, 1601 Coordinated
Universal Time (UTC).
This function returns the number of nanoseconds since the canonical epoch,
which is the POSIX one (Jan 01, 1970 AD).
Prototype
pub fn fromSysTime(hns: i64) i128
Parameters
hns: i64
Source
pub fn fromSysTime(hns: i64) i128 {
const adjusted_epoch: i128 = hns + std.time.epoch.windows * (std.time.ns_per_s / 100);
return adjusted_epoch * 100;
}