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>>
Available on crate feature chrono only.
pub fn as_chrono(&self) -> LocalResult<DateTime<Utc>>
chrono only.Constructs chrono’s DateTime representation of this date & time.
Note that this requires the chrono feature.
Sourcepub fn from_chrono(dt: &DateTime<Utc>) -> Self
Available on crate feature chrono only.
pub fn from_chrono(dt: &DateTime<Utc>) -> Self
chrono only.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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ZipDateTime
Source§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
impl Eq for ZipDateTime
Source§impl From<&ZipDateTime> for LocalResult<DateTime<Utc>>
Available on crate feature chrono only.
impl From<&ZipDateTime> for LocalResult<DateTime<Utc>>
Available on crate feature
chrono only.Source§fn from(value: &ZipDateTime) -> Self
fn from(value: &ZipDateTime) -> Self
Converts to this type from the input type.
Source§impl From<ZipDateTime> for ZipDateTimeBuilder
impl From<ZipDateTime> for ZipDateTimeBuilder
Source§fn from(date: ZipDateTime) -> Self
fn from(date: ZipDateTime) -> Self
Converts to this type from the input type.
Source§impl From<ZipDateTime> for LocalResult<DateTime<Utc>>
Available on crate feature chrono only.
impl From<ZipDateTime> for LocalResult<DateTime<Utc>>
Available on crate feature
chrono only.Source§fn from(value: ZipDateTime) -> Self
fn from(value: ZipDateTime) -> Self
Converts to this type from the input type.
Source§impl From<ZipDateTimeBuilder> for ZipDateTime
impl From<ZipDateTimeBuilder> for ZipDateTime
Source§fn from(builder: ZipDateTimeBuilder) -> Self
fn from(builder: ZipDateTimeBuilder) -> Self
Converts to this type from the input type.
Source§impl Hash for ZipDateTime
impl Hash for ZipDateTime
Source§impl PartialEq for ZipDateTime
impl PartialEq for ZipDateTime
impl StructuralPartialEq for ZipDateTime
Auto Trait Implementations§
impl Freeze for ZipDateTime
impl RefUnwindSafe for ZipDateTime
impl Send for ZipDateTime
impl Sync for ZipDateTime
impl Unpin for ZipDateTime
impl UnsafeUnpin 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