[][src]Struct avr_libc::tm

#[repr(C)]pub struct tm {
    pub tm_sec: i8,
    pub tm_min: i8,
    pub tm_hour: i8,
    pub tm_mday: i8,
    pub tm_wday: i8,
    pub tm_mon: i8,
    pub tm_year: i16,
    pub tm_yday: i16,
    pub tm_isdst: i16,
}

The tm structure contains a representation of time 'broken down' into components of the Gregorian calendar.

The value of tm_isdst is zero if Daylight Saving Time is not in effect, and is negative if the information is not available.

When Daylight Saving Time is in effect, the value represents the number of seconds the clock is advanced.

See the set_dst() function for more information about Daylight Saving.

Fields

tm_sec: i8

< seconds after the minute - [ 0 to 59 ]

tm_min: i8

< minutes after the hour - [ 0 to 59 ]

tm_hour: i8

< hours since midnight - [ 0 to 23 ]

tm_mday: i8

< day of the month - [ 1 to 31 ]

tm_wday: i8

< days since Sunday - [ 0 to 6 ]

tm_mon: i8

< months since January - [ 0 to 11 ]

tm_year: i16

< years since 1900

tm_yday: i16

< days since January 1 - [ 0 to 365 ]

tm_isdst: i16

< Daylight Saving Time flag

Trait Implementations

impl Clone for tm[src]

impl Copy for tm[src]

impl Debug for tm[src]

Auto Trait Implementations

impl Send for tm[src]

impl Sync for tm[src]

impl Unpin for tm[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.