Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Structure for storing date and time values with sub-second precision. More...
#include <rtc.h>
Data Fields | |
int | tm_sec |
Seconds [0, 59]. | |
int | tm_min |
Minutes [0, 59]. | |
int | tm_hour |
Hours [0, 23]. | |
int | tm_mday |
Day of the month [1, 31]. | |
int | tm_mon |
Month [0, 11]. | |
int | tm_year |
Year - 1900. | |
int | tm_wday |
Day of the week [0, 6] (Sunday = 0) (Unknown = -1) | |
int | tm_yday |
Day of the year [0, 365] (Unknown = -1) | |
int | tm_isdst |
Daylight saving time flag [-1] (Unknown = -1) | |
int | tm_nsec |
Nanoseconds [0, 999999999] (Unknown = 0) | |
Structure for storing date and time values with sub-second precision.
The structure is 1-1 mapped to the struct tm for the members tm_sec
to tm_isdst
making it compatible with the standard time library.
int rtc_time::tm_hour |
Hours [0, 23].
int rtc_time::tm_isdst |
Daylight saving time flag [-1] (Unknown = -1)
int rtc_time::tm_mday |
Day of the month [1, 31].
int rtc_time::tm_min |
Minutes [0, 59].
int rtc_time::tm_mon |
Month [0, 11].
int rtc_time::tm_nsec |
Nanoseconds [0, 999999999] (Unknown = 0)
int rtc_time::tm_sec |
Seconds [0, 59].
int rtc_time::tm_wday |
Day of the week [0, 6] (Sunday = 0) (Unknown = -1)
int rtc_time::tm_yday |
Day of the year [0, 365] (Unknown = -1)
int rtc_time::tm_year |
Year - 1900.