[][src]Struct rpi_pico_sdk::datetime_t

#[repr(C)]pub struct datetime_t {
    pub year: i16,
    pub month: i8,
    pub day: i8,
    pub dotw: i8,
    pub hour: i8,
    pub min: i8,
    pub sec: i8,
}

\struct datetime_t \ingroup util_datetime \brief Structure containing date and time information

When setting an RTC alarm, set a field to -1 tells the RTC to not match on this field

Fields

year: i16

< 0..4095

month: i8

< 1..12, 1 is January

day: i8

< 1..28,29,30,31 depending on month

dotw: i8

< 0..6, 0 is Sunday

hour: i8

< 0..23

min: i8

< 0..59

sec: i8

< 0..59

Trait Implementations

impl Clone for datetime_t[src]

impl Copy for datetime_t[src]

impl Debug for datetime_t[src]

Auto Trait Implementations

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.