gMonth¶
-
EXESS_MAX_MONTH_LENGTH¶
10U
The maximum length of a
gMonthstring fromexess_write_month()
-
struct ExessMonth¶
Month in a Gregorian year.
-
uint8_t month¶
Month: [1, 12].
-
ExessTimezone zone¶
Timezone offset in quarter hours.
-
uint8_t month¶
-
ExessResult exess_read_month(const char *str, ExessMonth *out)¶
Read a
gMonthstring 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_month(ExessMonth value, size_t buf_size, char *buf)¶
Write a canonical
gMonthstring.The output is always in canonical form, like
--04or--04+03: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.