#[repr(C)]pub struct switch_time_exp_t {
pub tm_usec: i32,
pub tm_sec: i32,
pub tm_min: i32,
pub tm_hour: i32,
pub tm_mday: i32,
pub tm_mon: i32,
pub tm_year: i32,
pub tm_wday: i32,
pub tm_yday: i32,
pub tm_isdst: i32,
pub tm_gmtoff: i32,
}Expand description
a structure similar to ANSI struct tm with the following differences:
- tm_usec isn’t an ANSI field
- tm_gmtoff isn’t an ANSI field (it’s a bsdism)
Fields§
§tm_usec: i32microseconds past tm_sec
tm_sec: i32(0-61) seconds past tm_min
tm_min: i32(0-59) minutes past tm_hour
tm_hour: i32(0-23) hours past midnight
tm_mday: i32(1-31) day of the month
tm_mon: i32(0-11) month of the year
tm_year: i32year since 1900
tm_wday: i32(0-6) days since sunday
tm_yday: i32(0-365) days since jan 1
tm_isdst: i32daylight saving time
tm_gmtoff: i32seconds east of UTC
Trait Implementations§
Source§impl Clone for switch_time_exp_t
impl Clone for switch_time_exp_t
Source§fn clone(&self) -> switch_time_exp_t
fn clone(&self) -> switch_time_exp_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for switch_time_exp_t
impl Debug for switch_time_exp_t
Source§impl Default for switch_time_exp_t
impl Default for switch_time_exp_t
Source§fn default() -> switch_time_exp_t
fn default() -> switch_time_exp_t
Returns the “default value” for a type. Read more
impl Copy for switch_time_exp_t
Auto Trait Implementations§
impl Freeze for switch_time_exp_t
impl RefUnwindSafe for switch_time_exp_t
impl Send for switch_time_exp_t
impl Sync for switch_time_exp_t
impl Unpin for switch_time_exp_t
impl UnsafeUnpin for switch_time_exp_t
impl UnwindSafe for switch_time_exp_t
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