pub struct Time {
pub sec: u8,
pub min: u8,
pub hour: u8,
pub month_day: u8,
pub month: u8,
pub year: u16,
pub week_day: u8,
pub day: u16,
pub is_dst: bool,
}Expand description
Normalized tm
Fields§
§sec: u8Seconds after the minute. Range 0-60
min: u8Minutes after the hour. Range 0-59
hour: u8Hours since midnight. Range 0-23
month_day: u8Day of the month. Range 1-31
month: u8Months since January. Range 1-12
year: u16Year
week_day: u8days since Sunday. Range 0-6
day: u16Days since January 1. Range 0-365
is_dst: boolIndicates Daylight Saving Time presence.
Implementations§
Trait Implementations§
impl Copy for Time
impl Eq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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