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

196

17918 readers
591 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS
615
ISO 8601 ftw rule (gregtech.eu)
submitted 5 months ago* (last edited 5 months 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] 5 points 5 months ago (13 children)

They are all equally prescise. American one is stupid just like their stupid ass imperial units. European one is two systems slapped together(since they are rarely used together and when they are its the iso format) and iso is what european standard should be.

[–] Bo7a 13 points 5 months ago* (last edited 5 months ago) (12 children)

You misunderstand my comment.

I'm saying the digits in a date should be printed in an order dictated by which units give the most precision.

A year is the least precise, a month is the next least, followed by day, hour, minute, second, millisecond.

[–] [email protected] 0 points 4 months ago (8 children)

You are looking not for precision but for largest to smallest, descending order. this is distinct from precision, a measure of how finely measured something is. 2025.07397 is actually more precise than 2025/01/27, but is measured by the largest increment.

[–] Bo7a 1 points 4 months ago* (last edited 4 months 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 4 months ago

They chose poor words for this.

load more comments (6 replies)
load more comments (9 replies)
load more comments (9 replies)