gYear¶
-
EXESS_MAX_YEAR_LENGTH¶
12U
The maximum length of a
gYearstring fromexess_write_year()
-
struct ExessYear¶
A Gregorian year.
-
int16_t year¶
Year: any positive or negative value.
-
ExessTimezone zone¶
Timezone offset in quarter hours.
-
int16_t year¶
-
ExessResult exess_read_year(const char *str, ExessYear *out)¶
Read a
gYearstring 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_year(ExessYear value, size_t buf_size, char *buf)¶
Write a canonical
gYearstring.The output is always in canonical form, like
2001or2001+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.