#[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,
pub tm_gmtoff: c_long,
pub tm_zone: *const c_char,
}Expand description
A broken down time representation, logically equivalent to struct tm in unix.
Note: This is libtz’s struct tm and doesn’t necessarily match the system’s
in terms of member ordering.
Reference: https://pubs.opengroup.org/onlinepubs/7908799/xsh/time.h.html
Fields§
§tm_sec: c_intSeconds [0, 60]
tm_min: c_intMinutes [0, 59]
tm_hour: c_intHour [0, 23]
tm_mday: c_intDay of the month [1, 31]
tm_mon: c_intMonth [0, 11] (January = 0)
tm_year: c_intYear minus 1900
tm_wday: c_intDay of the week [0, 6] (Sunday = 0)
tm_yday: c_intDay of the year [0, 365] (Jan/01 = 0)
tm_isdst: c_intDaylight savings flag
tm_gmtoff: c_longSeconds East of UTC
tm_zone: *const c_charTimezone abbreviation