Struct ExtendedTimestamp
pub struct ExtendedTimestamp { /* private fields */ }
Extended timestamp, as described in https://libzip.org/specifications/extrafld.txt
Implementations
impl ExtendedTimestamp
fn try_from_reader<R: Read>(reader: &mut R, len: u16, is_local_header: bool) -> ZipResult<Self>creates an extended timestamp struct by reading the required bytes from the reader.
This method assumes that the length has already been read, therefore it must be passed as an argument
Errors
Fails if the len is empty or a read fails
fn mod_time(&self) -> Option<u32>returns the last modification timestamp, if defined, as UNIX epoch seconds
fn ac_time(&self) -> Option<u32>returns the last access timestamp, if defined, as UNIX epoch seconds
fn cr_time(&self) -> Option<u32>returns the creation timestamp, if defined, as UNIX epoch seconds
Trait Implementations
impl Clone for ExtendedTimestamp
fn clone(&self) -> Self
impl Debug for ExtendedTimestamp
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl PartialEq for ExtendedTimestamp
fn eq(&self, other: &Self) -> bool