this post was submitted on 26 Jan 2025
603 points (96.0% liked)

196

16837 readers
1143 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 2 years ago
MODERATORS
603
ISO 8601 ftw rule (gregtech.eu)
submitted 3 days ago* (last edited 3 days ago) by [email protected] to c/[email protected]
 

[email protected] gang, rise up

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 1 day ago* (last edited 1 day ago) (1 children)

We can debate this all day. And I can't honestly say that I would take either side in a purely semantics argument.

But the wording comes directly from RFC3339 which is, to me, the definitive source for useful date representation.

https://www.ietf.org/rfc/rfc3339.txt

5.1. Ordering

If date and time components are ordered from least precise to most precise, then a useful property is achieved. Assuming that the time zones of the dates and times are the same (e.g., all in UTC), expressed using the same string (e.g., all "Z" or all "+00:00"), and all times have the same number of fractional second digits, then the date and time strings may be sorted as strings (e.g., using the strcmp() function in C) and a time-ordered sequence will result.

[โ€“] [email protected] 1 points 1 day ago

They chose poor words for this.