pub struct DateTime {
pub year: u8,
pub month: u8,
pub day: u8,
pub weekday: u8,
pub hours: u8,
pub minutes: u8,
pub seconds: u8,
}Expand description
Date and time structure
Fields§
§year: u8Year (0-99, represents 2000-2099 or 1900-1999 based on century flag)
month: u8Month (1-12)
day: u8Day of month (1-31)
weekday: u8Weekday (0-6, typically 0=Sunday)
hours: u8Hours (0-23)
minutes: u8Minutes (0-59)
seconds: u8Seconds (0-59)
Trait Implementations§
impl Copy for DateTime
impl Eq for DateTime
impl StructuralPartialEq for DateTime
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnsafeUnpin for DateTime
impl UnwindSafe for DateTime
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