pub struct Civil {
pub year: i64,
pub month: u32,
pub day: u32,
pub hour: u32,
pub minute: u32,
pub second: u32,
pub day_of_year: u32,
pub weekday: u32,
}Expand description
The calendar fields of a UTC time. weekday counts 1 Monday to 7 Sunday.
Fields§
§year: i64§month: u32§day: u32§hour: u32§minute: u32§second: u32§day_of_year: u321-based.
weekday: u32Implementations§
Trait Implementations§
impl Copy for Civil
impl Eq for Civil
impl StructuralPartialEq for Civil
Auto Trait Implementations§
impl Freeze for Civil
impl RefUnwindSafe for Civil
impl Send for Civil
impl Sync for Civil
impl Unpin for Civil
impl UnsafeUnpin for Civil
impl UnwindSafe for Civil
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