pub struct Filetime(pub u64);Expand description
A raw Windows FILETIME (100-ns ticks since 1601-01-01 UTC).
Tuple Fields§
§0: u64Implementations§
Source§impl Filetime
impl Filetime
Sourcepub fn from_le(bytes: &[u8; 8]) -> Self
pub fn from_le(bytes: &[u8; 8]) -> Self
Read a little-endian FILETIME from the start of bytes (needs 8 bytes).
Sourcepub fn to_unix_seconds(&self) -> i64
pub fn to_unix_seconds(&self) -> i64
Whole seconds since the Unix epoch (may be negative for pre-1970 times).
Sourcepub fn to_unix_nanos(&self) -> i128
pub fn to_unix_nanos(&self) -> i128
Nanoseconds since the Unix epoch (i128 to span the full FILETIME range).
Trait Implementations§
impl Copy for Filetime
impl Eq for Filetime
Source§impl Ord for Filetime
impl Ord for Filetime
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Filetime
impl PartialOrd for Filetime
impl StructuralPartialEq for Filetime
Auto Trait Implementations§
impl Freeze for Filetime
impl RefUnwindSafe for Filetime
impl Send for Filetime
impl Sync for Filetime
impl Unpin for Filetime
impl UnsafeUnpin for Filetime
impl UnwindSafe for Filetime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more