this post was submitted on 26 Jan 2025
607 points (96.1% liked)

196

16826 readers
1274 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
607
ISO 8601 ftw rule (gregtech.eu)
submitted 4 days ago* (last edited 4 days ago) by lena@gregtech.eu to c/196@lemmy.blahaj.zone
 

!iso8601@lemmy.sdf.org gang, rise up

you are viewing a single comment's thread
view the rest of the comments
[–] Maggoty@lemmy.world 13 points 4 days ago (1 children)

Mmm US military date and time is fun too.

DDMMMYYYYHHMM and time zone identifier. So 26JAN20251841Z.

So much fun.

[–] jagungal@lemmy.world 5 points 4 days ago (2 children)

So virtually human unreadable and the letters make machine readability a pain in the ass?

[–] boonhet@lemm.ee 6 points 3 days ago (1 children)

Honestly look very readable to me, though I'm not sure on the timezone bit. Maybe they left it out? Ohterwise it's 26th of January 2025, 18:41

It's gonna be problematic when there's 5 digit years, but other than that it's... not good, but definitely less ambiguous than any "normally formatted" date where DD <= 12. Is it MM/DD or DD/MM? We'll never fucking know!

Of course, YYYY-MM-DD is still the king because it's both human readable and sortable as a regular string without converting it into a datetime object or anything.

[–] jagungal@lemmy.world 6 points 3 days ago* (last edited 3 days ago) (1 children)

All you'd have to do to make it much more readable is separate the time and the year with some kind of separator like a hyphen, slash or dot. Also "Z" is the time zone, denoting UTC (see also military time zones)

[–] boonhet@lemm.ee 3 points 3 days ago* (last edited 3 days ago)

Oh, duh. It's why all my timestamps have Z's in the database lmao

Thing is, you're right that the separation would help, but this is still way less ambiguous that MM/DD vs DD/MM if you ask me.

[–] Maggoty@lemmy.world 1 points 3 days ago

As my friend used to say, there's dumb and then there's Army Dumb.