diff options
| author | 2024-11-05 16:48:11 +0100 | |
|---|---|---|
| committer | 2024-11-05 16:48:11 +0100 | |
| commit | 1675127c2a9d5e8e6fa1d3dd86a47a083d34bdb7 (patch) | |
| tree | fae2bb28fe38f09658d8478e0f3c7ab665c66185 /xs_time.h | |
| parent | Merge branch 'master' of comam.es:git/snac2 (diff) | |
| download | penes-snac2-1675127c2a9d5e8e6fa1d3dd86a47a083d34bdb7.tar.gz penes-snac2-1675127c2a9d5e8e6fa1d3dd86a47a083d34bdb7.tar.xz penes-snac2-1675127c2a9d5e8e6fa1d3dd86a47a083d34bdb7.zip | |
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 @@ | |||
| 9 | xs_str *xs_str_time(time_t t, const char *fmt, int local); | 9 | xs_str *xs_str_time(time_t t, const char *fmt, int local); |
| 10 | #define xs_str_localtime(t, fmt) xs_str_time(t, fmt, 1) | 10 | #define xs_str_localtime(t, fmt) xs_str_time(t, fmt, 1) |
| 11 | #define xs_str_utctime(t, fmt) xs_str_time(t, fmt, 0) | 11 | #define xs_str_utctime(t, fmt) xs_str_time(t, fmt, 0) |
| 12 | #define xs_str_iso_date(t) xs_str_time(t, "%Y-%m-%dT%H:%M:%SZ", 0) | ||
| 12 | time_t xs_parse_iso_date(const char *iso_date, int local); | 13 | time_t xs_parse_iso_date(const char *iso_date, int local); |
| 13 | time_t xs_parse_time(const char *str, const char *fmt, int local); | 14 | time_t xs_parse_time(const char *str, const char *fmt, int local); |
| 14 | #define xs_parse_localtime(str, fmt) xs_parse_time(str, fmt, 1) | 15 | #define xs_parse_localtime(str, fmt) xs_parse_time(str, fmt, 1) |