pub struct CivilUtc {
pub year: i64,
pub month: u64,
pub day: u64,
pub hour: u64,
pub minute: u64,
pub second: u64,
}Expand description
Broken-down UTC date/time from a Unix timestamp.
Fields§
§year: i64§month: u64§day: u64§hour: u64§minute: u64§second: u64Implementations§
Source§impl CivilUtc
impl CivilUtc
Sourcepub fn format_date(&self) -> String
pub fn format_date(&self) -> String
YYYY-MM-DD.
Sourcepub fn format_iso_utc(&self) -> String
pub fn format_iso_utc(&self) -> String
YYYY-MM-DDTHH:MM:SSZ.
Trait Implementations§
impl Copy for CivilUtc
impl Eq for CivilUtc
impl StructuralPartialEq for CivilUtc
Auto Trait Implementations§
impl Freeze for CivilUtc
impl RefUnwindSafe for CivilUtc
impl Send for CivilUtc
impl Sync for CivilUtc
impl Unpin for CivilUtc
impl UnsafeUnpin for CivilUtc
impl UnwindSafe for CivilUtc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more