diff options
| author | default <nobody@localhost> | 2024-11-05 16:48:11 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-11-05 16:48:11 +0100 |
| commit | 1675127c2a9d5e8e6fa1d3dd86a47a083d34bdb7 (patch) | |
| tree | fae2bb28fe38f09658d8478e0f3c7ab665c66185 /xs_time.h | |
| parent | e194fa9c045091b15741e16b87cd0553caf0ddfe (diff) | |
Minor xs tweak.
Diffstat (limited to 'xs_time.h')
| -rw-r--r-- | xs_time.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -9,6 +9,7 @@ xs_str *xs_str_time(time_t t, const char *fmt, int local); #define xs_str_localtime(t, fmt) xs_str_time(t, fmt, 1) #define xs_str_utctime(t, fmt) xs_str_time(t, fmt, 0) +#define xs_str_iso_date(t) xs_str_time(t, "%Y-%m-%dT%H:%M:%SZ", 0) time_t xs_parse_iso_date(const char *iso_date, int local); time_t xs_parse_time(const char *str, const char *fmt, int local); #define xs_parse_localtime(str, fmt) xs_parse_time(str, fmt, 1) |