Struct async_zip2::ZipDateTime
source · pub struct ZipDateTime { /* private fields */ }
Expand description
A date and time stored as per the MS-DOS representation used by ZIP files.
Implementations§
source§impl ZipDateTime
impl ZipDateTime
sourcepub fn second(&self) -> u32
pub fn second(&self) -> u32
Returns the second of this date & time.
Note that MS-DOS has a maximum granularity of two seconds.
sourcepub fn as_chrono(&self) -> LocalResult<DateTime<Utc>>
pub fn as_chrono(&self) -> LocalResult<DateTime<Utc>>
Constructs chrono’s DateTime
representation of this date & time.
Note that this requires the chrono
feature.
sourcepub fn from_chrono(dt: &DateTime<Utc>) -> Self
pub fn from_chrono(dt: &DateTime<Utc>) -> Self
Constructs this date & time from chrono’s DateTime
representation.
Note that this requires the chrono
feature.
Trait Implementations§
source§impl Clone for ZipDateTime
impl Clone for ZipDateTime
source§fn clone(&self) -> ZipDateTime
fn clone(&self) -> ZipDateTime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ZipDateTime
impl Debug for ZipDateTime
source§impl Default for ZipDateTime
impl Default for ZipDateTime
source§fn default() -> ZipDateTime
fn default() -> ZipDateTime
Returns the “default value” for a type. Read more
source§impl Hash for ZipDateTime
impl Hash for ZipDateTime
source§impl PartialEq for ZipDateTime
impl PartialEq for ZipDateTime
source§fn eq(&self, other: &ZipDateTime) -> bool
fn eq(&self, other: &ZipDateTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ZipDateTime
impl Eq for ZipDateTime
impl StructuralEq for ZipDateTime
impl StructuralPartialEq for ZipDateTime
Auto Trait Implementations§
impl RefUnwindSafe for ZipDateTime
impl Send for ZipDateTime
impl Sync for ZipDateTime
impl Unpin for ZipDateTime
impl UnwindSafe for ZipDateTime
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