Re:RFC 3339 vs. ISO 8601
by CodesInChaos on Thursday August 31, 2023 @02:16PM
(#37341493)
Yes, a suffix like `S`/`W` (for Summer/Winter) or `+`/`-` in place of Z would help with disambiguation.
But you still need to handle the case where the local time is skipped. You could pick the timestamp during which the skip happens, but that'd lead to an offset that can contain fractional seconds, which almost no datetime library supports.
Re:RFC 3339 vs. ISO 8601
by proto_lambda on Thursday August 31, 2023 @04:47PM
(#37343469)
That works until a country decides to hop across the international date line the day after they switch from DST to normal time, and the timestamp occurs three times ;)
Value 0 meaning “if there is a DST switch, interpret the time as the chronologically earlier one”
Value 1 meaning “if there is a DST switch, interpret the time as the chronologically later one”.