From 8a3fd9621410f717b4895679f9737416c039b871 Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Fri, 2 Jun 2023 10:18:51 +0200 Subject: improve explanation of rfc3339 and co --- src/tm.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tm.c b/src/tm.c index d83ec8e..c15c22a 100644 --- a/src/tm.c +++ b/src/tm.c @@ -325,9 +325,11 @@ const static struct strftime_format strftime_formats[] = { // same as -calendar but extended format (except for %z) {"iso8601", "%FT%T%z"}, /* :rfc3339 based on RFC 3339 - * Non-compliance: - * * when the timezone is exactly UTC, we may not use "Z" for the offset - * * the UTC offset may not contain a ":" + * RFC 3339 is essentially an ISO 8601 profile with clarifications. + * As such, the non-compliance we have against ISO 8601 applies here. + * + * Additionally, RFC 3339 requires that the UTC offset contain a ":", + * (i.e the extended format is required) so we are also non-compliant there. */ {"rfc3339", "%F %T%z"}, /* :html based on Dates and Times Microsyntaxes of WHATWG @@ -335,6 +337,7 @@ const static struct strftime_format strftime_formats[] = { */ {"html", "%F %T%z"}, /* :email, :rfc5321, :rfc5322, :internet based on RFC 5322 #3.3 + * They are all identical. * This implementation is fully compliant. * Note that according to the spec, these should be used against localtime. * Additionally, note that the below are locale-dependent. -- cgit v1.2.3