modm API documentation
|
Calender Date and Time. More...
#include <modm/ui/time/time.hpp>
Public Member Functions | |
UnixTime | toUnixTimestamp () const |
Public Attributes | |
uint8_t | second |
Seconds after the minute [0, 60]. | |
uint8_t | minute |
Minutes after the hour [0, 59]. | |
uint8_t | hour |
Hours since midnight [0, 23]. | |
uint8_t | day |
Day of the month [1, 31]. | |
uint8_t | month |
Months since January [0, 11]. | |
uint8_t | year |
Years since 1900 (up to 2099) | |
uint8_t | dayOfTheWeek |
Days since Sunday [0, 6] (0=Sunday, 6=Saturday) | |
uint8_t | dayOfTheYear |
Days since January 1 [0, 365]. | |
Calender Date and Time.
modm::UnixTime modm::Date::toUnixTimestamp | ( | ) | const |
Converts calendar time to a time since epoch as a modm::UnixTime object.