Struct embedded_sdmmc::Timestamp
source · pub struct Timestamp {
pub year_since_1970: u8,
pub zero_indexed_month: u8,
pub zero_indexed_day: u8,
pub hours: u8,
pub minutes: u8,
pub seconds: u8,
}Expand description
Represents an instant in time, in the local time zone. TODO: Consider
replacing this with POSIX time as a u32, which would save two bytes at
the expense of some maths.
Fields§
§year_since_1970: u8Add 1970 to this file to get the calendar year
zero_indexed_month: u8Add one to this value to get the calendar month
zero_indexed_day: u8Add one to this value to get the calendar day
hours: u8The number of hours past midnight
minutes: u8The number of minutes past the hour
seconds: u8The number of seconds past the minute
Implementations§
Trait Implementations§
source§impl Ord for Timestamp
impl Ord for Timestamp
source§impl PartialEq<Timestamp> for Timestamp
impl PartialEq<Timestamp> for Timestamp
source§impl PartialOrd<Timestamp> for Timestamp
impl PartialOrd<Timestamp> for Timestamp
1.0.0 · source§fn 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