gDay¶
-
EXESS_MAX_DAY_LENGTH¶
11U
The maximum length of a
gDaystring fromexess_write_day()
-
struct ExessDay¶
Day in a Gregorian month.
-
uint8_t day¶
Day: [1, 31].
-
ExessTimezone zone¶
Timezone offset in quarter hours.
-
uint8_t day¶
-
ExessResult exess_read_day(const char *str, ExessDay *out)¶
Read a
gDaystring after any leading whitespace.- Parameters:
str – String to read.
out – Parsed value, or zero on error.
- Returns:
The
countof characters read, and astatus.
-
ExessResult exess_write_day(ExessDay value, size_t buf_size, char *buf)¶
Write a canonical
gDaystring.The output is always in canonical form, like
---12or---12+02:00.- Parameters:
value – Value to write.
buf_size – Size of
bufin bytes.buf – Output buffer, or null to only measure.
- Returns:
ExessStatus.EXESS_SUCCESSon success,ExessStatus.EXESS_NO_SPACEif the buffer is too small, orExessStatus.EXESS_BAD_VALUEif the value is invalid.