diff options
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) |