#[repr(C)]pub struct tm {
pub tm_sec: c_int,
pub tm_min: c_int,
pub tm_hour: c_int,
pub tm_mday: c_int,
pub tm_mon: c_int,
pub tm_year: c_int,
pub tm_wday: c_int,
pub tm_yday: c_int,
pub tm_isdst: c_int,
/* private fields */
}Expand description
C definition of decoded time.
Fields§
§tm_sec: c_intSeconds after the minute. Range 0-60
tm_min: c_intMinutes after the hour. Range 0-59
tm_hour: c_intHours since midnight. Range 0-23
tm_mday: c_intDay of the month. Range 1-31
tm_mon: c_intMonths since January. Range 0-11
tm_year: c_intYears since 1900
tm_wday: c_intdays since Sunday. Range 0-6
tm_yday: c_intdays since January 1. Range 0-365
tm_isdst: c_intDaylight Saving Time flag. Non-zero value indicates DST is present.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for tm
impl RefUnwindSafe for tm
impl Send for tm
impl Sync for tm
impl Unpin for tm
impl UnwindSafe for tm
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