pub struct FileTime(pub u64);Expand description
Windows FILETIME: 100-nanosecond intervals since 1601-01-01 00:00:00 UTC.
Tuple Fields§
§0: u64The raw 100-nanosecond tick count.
Implementations§
Source§impl FileTime
impl FileTime
Sourcepub fn from_system_time(t: SystemTime) -> Self
pub fn from_system_time(t: SystemTime) -> Self
Convert a SystemTime to a FileTime.
Uses the Unix epoch offset (116,444,736,000,000,000 intervals of 100 ns) to translate between the two epoch origins.
Sourcepub fn to_system_time(self) -> Option<SystemTime>
pub fn to_system_time(self) -> Option<SystemTime>
Convert this FileTime to a SystemTime.
Returns None if the filetime represents a date before the Unix epoch,
since SystemTime cannot represent dates before that.
Trait Implementations§
impl Copy for FileTime
impl Eq for FileTime
Source§impl Pack for FileTime
impl Pack for FileTime
Source§fn pack(&self, cursor: &mut WriteCursor)
fn pack(&self, cursor: &mut WriteCursor)
Write this value into the cursor.
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