pub struct Timestamp(/* private fields */);Expand description
A timestamp for an entry in an archive.
It is stored as a 64-bits UNIX timestamp, and therefore has second precision.
Implementations§
Source§impl Timestamp
impl Timestamp
Sourcepub fn from_ntfs(time: u64) -> Self
pub fn from_ntfs(time: u64) -> Self
Returns a Timestamp from a NTFS timestamp.
Sub-second precision is lost in the process.
Sourcepub fn from_std(t: SystemTime) -> Self
pub fn from_std(t: SystemTime) -> Self
Returns a Timestamp from a SystemTime.
Sub-second precision is lost in the process.
Sourcepub fn to_std(self) -> SystemTime
pub fn to_std(self) -> SystemTime
Converts this timestamp to a SystemTime.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
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