Data Fields | |
uint16_t | d |
The day. | |
uint8_t | h |
The hour in a day. | |
uint8_t | m |
The minute in an hour. | |
uint8_t | s |
The seconds in a minute. |
"Time since" as a structure: a duration or a date/time
This type stores the elapsed time as "seconds, .., days" relative to a arbitrary starting zero. It is the "structured" equivalent to a 32 bit unsigned "seconds since" value.
Depending on (the semantic of) this zero point in time this always represents a duration but in case of an appropriate "zero" also an absolute date and time.
Due to said equivalence an unsigned 32 bit seconds value can be converted to this type and vice versa. So it is commonly used as intermediate form for parsing and formatting.
uint8_t s |
The seconds in a minute.
This value will wrap from 59 to 0 (after one minute).
uint8_t m |
The minute in an hour.
This value wrap from 59 to 0 (after one hour).
uint8_t h |
The hour in a day.
This value wrap from 23 to 0 (after one day).
uint16_t d |
The day.
This day counter will wrap after about 179 years.
If used as offset to 1st of March 2008 (1.3.2008 / 2008-03-01) this absolute date will get us to 2187 and hence far beyond 2100 respectively 2076 (2008 + 136/2), see also getDaysByDat().