pub struct DateTime {
pub year: u16,
pub month: u8,
pub day: u8,
pub day_of_week: DayOfWeek,
pub hour: u8,
pub minute: u8,
pub second: u8,
}Expand description
Structure containing date and time information
Fields§
§year: u160..4095
month: u81..12, 1 is January
day: u81..28,29,30,31 depending on month
day_of_week: DayOfWeek0..6, 0 is Sunday
hour: u80..23
minute: u80..59
second: u80..59
Implementations§
Trait Implementations§
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