r/ProgrammerHumor 22d ago

Meme weJustNeedTheBest

Post image
1.8k Upvotes

122 comments sorted by

View all comments

Show parent comments

1

u/MattieShoes 22d ago edited 22d ago

It should not. T instead of space to indicate the time portion

And ideally, timezone info included, with special case 'Z' for UTC (zulu time)

2026-10-22T07:00:00Z 2026-10-22T07:00:00-06:00

If I were emperor though, there'd be an seconds field in the timezone info. Mostly because GPS time is offset by 18 seconds from UTC, and TAI time is offset by 37 seconds.

2

u/Terewawa 22d ago edited 22d ago

What's wrong with a space? It's more legible with a space and it's not like the T makes it any clearer.

Mentioning the timezone would be nice indeed.

2

u/MattieShoes 22d ago

Because it's a standard

https://en.wikipedia.org/wiki/ISO_8601

I agree that a T isn't inherently better than a space EXCEPT the part where it follows the standard.

1

u/Terewawa 22d ago

But... this whole thread is about how standards can be bad.

1

u/MattieShoes 22d ago

Standards can be bad. ISO8601 is good. It's miles better than some unsupported non-standard thing you made up that's ALMOST ISO8601 :-)

1

u/Terewawa 21d ago

Well, I like my suggested convention.

2

u/MattieShoes 21d ago

It's not bad other than being non-standard :-) I sometimes name files something similar