Type Alias irox_time::epoch::WindowsNTTimestamp
source · pub type WindowsNTTimestamp = Timestamp<WindowsEpoch>;Expand description
Represents a duration offset from the WINDOWS_NT_EPOCH
Note: when a duration is actually retrieved from the windows FILETIME routines, it comes back in 100-nanosecond increments from this epoch.
Aliased Type§
struct WindowsNTTimestamp { /* private fields */ }Implementations§
source§impl WindowsNTTimestamp
impl WindowsNTTimestamp
sourcepub const fn from_offset(offset: Duration) -> WindowsNTTimestamp
pub const fn from_offset(offset: Duration) -> WindowsNTTimestamp
Creates a new timestamp given the specified offset
sourcepub const fn from_seconds(seconds: u32) -> WindowsNTTimestamp
pub const fn from_seconds(seconds: u32) -> WindowsNTTimestamp
Creates a new timestamp given the specified number of seconds
sourcepub const fn from_seconds_f64(seconds: f64) -> WindowsNTTimestamp
pub const fn from_seconds_f64(seconds: f64) -> WindowsNTTimestamp
Creates a new timestamp given the specified number of fractional seconds