Skip to main content

WindowsNTTimestamp

Type Alias 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§

pub 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