pub struct WindowsFileTimestamp(/* private fields */);Expand description
A Windows file time: signed 100-nanosecond ticks since 1601-01-01 UTC.
Ordering is ordering of the raw tick count, which is what makes a timestamp
comparison in a query mean the same thing as a comparison of the underlying
record fields. Filesystem sentinels participate as their raw values: a 0
change time on a filesystem that does not track one compares as less than
every real time, and is not silently promoted to “unknown”.
Implementations§
Source§impl WindowsFileTimestamp
impl WindowsFileTimestamp
Sourcepub const ZERO: Self
pub const ZERO: Self
The zero tick count, which is 1601-01-01 UTC and the value filesystems commonly report for a time they do not track.
Sourcepub const fn from_ticks(ticks: i64) -> Self
pub const fn from_ticks(ticks: i64) -> Self
Wrap a raw tick count.
Sourcepub const fn from_filetime(time: FILETIME) -> Self
pub const fn from_filetime(time: FILETIME) -> Self
Convert from the Microsoft two-word [FILETIME] representation.
Directory records carry these times as a single i64 already, so this
exists for interoperation with the many Win32 APIs that hand out a
FILETIME instead – not because the crate stores one.
Sourcepub const fn to_filetime(self) -> FILETIME
pub const fn to_filetime(self) -> FILETIME
Convert to the Microsoft two-word [FILETIME] representation.
Trait Implementations§
Source§impl Clone for WindowsFileTimestamp
impl Clone for WindowsFileTimestamp
Source§fn clone(&self) -> WindowsFileTimestamp
fn clone(&self) -> WindowsFileTimestamp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more