pub struct DateTime {
pub year: u16,
pub month: u8,
pub day: u8,
pub weekday: u8,
pub hour: Hours,
pub minute: u8,
pub second: u8,
}
Expand description
Date and time
Fields
year: u16
Year [2000-2099]
month: u8
Month [1-12]
day: u8
Day [1-31]
weekday: u8
Weekday [1-7]
hour: Hours
Hour in 24h/12h format
minute: u8
Minute [0-59]
second: u8
Second [0-59]
Trait Implementations
impl StructuralPartialEq for DateTime
Auto Trait Implementations
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more