1.2.7.4.58 SYS_FS_TIME Union
C
typedef union
{
struct discreteTime
{
/* Second / 2 (0..29) */
unsigned second: 5;
/* Minute (0..59) */
unsigned minute: 6;
/* Hour (0..23) */
unsigned hour: 5;
/* Day in month(1..31) */
unsigned day: 5;
/* Month (1..12) */
unsigned month: 4;
/* Year from 1980 (0..127) */
unsigned year: 7;
} discreteTime;
struct timeDate
{
/* Time (hour, min, seconds) */
uint16_t time;
/* Date (year, month, day) */
uint16_t date;
} timeDate;
/* Combined time information in a 32-bit value */
uint32_t packedTime;
} SYS_FS_TIME;
Summary
The structure to specify the time for a file or directory.
Description
This structure holds the date and time to be used to set for a file or directory.
bits 31-25: Year from 1980 (0..127) bits 24-21: Month (1..12) bits 20-16: Day in month(1..31) bits 15-11: Hour (0..23) bits 10-5 : Minute (0..59) bits 4-0 : Seconds / 2 (0..29)
Remarks
None.
