pub struct CivilDateTime {
pub year: i64,
pub month: u32,
pub day: u32,
pub hour: u32,
pub minute: u32,
pub second: u32,
pub nanosecond: u32,
}Expand description
A civil (wall-clock) date-time, calendar + time-of-day, with no zone — the human-readable decomposition of a SmoothUTC instant (nanoseconds since the Unix epoch, leap-second-free).
Fields§
§year: i64§month: u32§day: u32§hour: u32§minute: u32§second: u32§nanosecond: u32Trait Implementations§
Source§impl Clone for CivilDateTime
impl Clone for CivilDateTime
Source§fn clone(&self) -> CivilDateTime
fn clone(&self) -> CivilDateTime
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 moreSource§impl Debug for CivilDateTime
impl Debug for CivilDateTime
Source§impl Hash for CivilDateTime
impl Hash for CivilDateTime
Source§impl PartialEq for CivilDateTime
impl PartialEq for CivilDateTime
Source§fn eq(&self, other: &CivilDateTime) -> bool
fn eq(&self, other: &CivilDateTime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CivilDateTime
impl Eq for CivilDateTime
impl StructuralPartialEq for CivilDateTime
Auto Trait Implementations§
impl Freeze for CivilDateTime
impl RefUnwindSafe for CivilDateTime
impl Send for CivilDateTime
impl Sync for CivilDateTime
impl Unpin for CivilDateTime
impl UnsafeUnpin for CivilDateTime
impl UnwindSafe for CivilDateTime
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