aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tm.c b/src/tm.c
index a88ac36..9005626 100644
--- a/src/tm.c
+++ b/src/tm.c
@@ -280,6 +280,11 @@ struct strftime_format {
const char *format;
};
const static struct strftime_format strftime_formats[] = {
+ // ISO 8601 allows for a lot
+ // we represent it as YYYY-MM-DD hh:mm:ss[+/- offset]
+ // the main unfortunate bit is the use of +/-0000 over Z
+ {"iso8601", "%F %T%z"},
+ {"default", "%c"}, // system/locale format
{NULL, NULL},
};
JANET_FN(jd_strftime,