#[repr(C)]pub struct Time {
pub year_since_1970: u8,
pub zero_indexed_month: u8,
pub zero_indexed_day: u8,
pub hours: u8,
pub minutes: u8,
pub seconds: u8,
}
Expand description
Represents an instant in time, in the local time zone.
Fields§
§year_since_1970: u8
Add 1970 to this file to get the calendar year
zero_indexed_month: u8
Add one to this value to get the calendar month
zero_indexed_day: u8
Add one to this value to get the calendar day
hours: u8
The number of hours past midnight
minutes: u8
The number of minutes past the hour
seconds: u8
The number of seconds past the minute
Trait Implementations§
Source§impl Ord for Time
impl Ord for Time
Source§impl PartialOrd for Time
impl PartialOrd for Time
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