#[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
ISO C `broken-down time’ structure.
Fields
tm_sec: c_intSeconds. [0-60] (1 leap second)
tm_min: c_intMinutes. [0-59]
tm_hour: c_intHours. [0-23]
tm_mday: c_intDay. [1-31]
tm_mon: c_intMonth. [0-11]
tm_year: c_intYear - 1900.
tm_wday: c_intDay of week. [0-6]
tm_yday: c_intDays in year.[0-365]
tm_isdst: c_intDST. [-1/0/1]
__tm_gmtoff: c_longSeconds east of UTC.
__tm_zone: *const c_charTimezone abbreviation.
Trait Implementations
sourceimpl Ord for tm
impl Ord for tm
sourceimpl PartialOrd<tm> for tm
impl PartialOrd<tm> for tm
sourcefn partial_cmp(&self, other: &tm) -> Option<Ordering>
fn partial_cmp(&self, other: &tm) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for tm
impl Eq for tm
impl StructuralEq for tm
impl StructuralPartialEq for tm
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more