pub struct DateTime {
pub year: u16,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
}Expand description
Date and time.
Fields§
§year: u16Year (4 digits).
month: u8Month.
day: u8Day.
hour: u8Hour.
minute: u8Minute.
second: u8Second.
Implementations§
Trait Implementations§
impl Eq for DateTime
impl StructuralPartialEq for DateTime
Source§impl TryFromSlice for DateTime
impl TryFromSlice for DateTime
Source§impl WriteToBuffer for DateTime
impl WriteToBuffer 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