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

source

pub const fn from_offset(offset: Duration) -> WindowsNTTimestamp

Creates a new timestamp given the specified offset

source

pub const fn from_seconds(seconds: u32) -> WindowsNTTimestamp

Creates a new timestamp given the specified number of seconds

source

pub const fn from_seconds_f64(seconds: f64) -> WindowsNTTimestamp

Creates a new timestamp given the specified number of fractional seconds

Trait Implementations§

source§

impl Default for WindowsNTTimestamp

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<Duration> for WindowsNTTimestamp

source§

fn from(value: Duration) -> Self

Converts to this type from the input type.
source§

impl<T> FromTimestamp<T> for WindowsNTTimestamp

source§

fn from_timestamp(other: &Timestamp<T>) -> Self