From 1675127c2a9d5e8e6fa1d3dd86a47a083d34bdb7 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 5 Nov 2024 16:48:11 +0100 Subject: Minor xs tweak. --- xs_time.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xs_time.h') diff --git a/xs_time.h b/xs_time.h index dc3bb3d..1df2fef 100644 --- a/xs_time.h +++ b/xs_time.h @@ -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) -- cgit