#[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,
}
Expand description
\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§
Source§impl Clone for datetime_t
impl Clone for datetime_t
Source§fn clone(&self) -> datetime_t
fn clone(&self) -> datetime_t
Returns a duplicate of the value. Read more
1.0.0 · 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 datetime_t
impl Debug for datetime_t
impl Copy for datetime_t
Auto Trait Implementations§
impl Freeze for datetime_t
impl RefUnwindSafe for datetime_t
impl Send for datetime_t
impl Sync for datetime_t
impl Unpin for datetime_t
impl UnwindSafe for datetime_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