Is this the correct value in ISO 8601 terms: "2022-12-31T23:59:60Z"?
Yes, it is. I mean, there was no leap second, but I don’t think ISO 8601 cares about validity, because the decision to introduce a leap second is beyond the ISO committee’s control.
the range of seconds can be from 0 to 59
2016-12-31T23:59:60Z should be accepted though. As far as I looked into it, the implicitly used
tryEncodeTime thinks a seconds value > 59 was absolutely illegal.
The ISO 8601 resolution is in seconds.
ISO 8601
does permit an arbitrary number of decimal digits. A valid datum:
2023-01-16T20:04:25.327696787123788+00:00However, this will also be rejected by
tryISOStrToDateTime.
