|
time 1.0
Time validation library
|
Represents a compact calendar date using day, month, and year fields. More...
#include <time.h>
Data Fields | |
| unsigned char | day |
| unsigned char | month |
| unsigned char | year |
Represents a compact calendar date using day, month, and year fields.
This structure provides an 8-bit per field representation of a calendar date, suitable for embedded systems and RTC-related operations. The year field is typically interpreted as an offset from an application-defined epoch (for example, 2000 + year), allowing efficient storage in limited memory environments.
| unsigned char day |
Day of month (1–31, depending on month)
| unsigned char month |
Month of year (1–12)
| unsigned char year |
Year offset relative to an application-defined epoch