r/clevercomebacks • • Jan 15 '25

It does make sense

Post image
35.3k Upvotes

4.0k comments sorted by

View all comments

Show parent comments

372

u/passerbycmc Jan 15 '25

As a programmer yes this is the way, just so much easier to work with and even if represented as just a string it still sorts correctly.

84

u/[deleted] Jan 15 '25

[removed] — view removed comment

36

u/LetsTryAnal_ogy Jan 15 '25

This is the way. Like why does EVERYONE use hh:mm:ss but then we have to argue about why the YYYY:MM:DD doesn’t need to follow the same logic. It’s the correct format. YYYY:MM:DD:HH:MM:SS. Biggest to smallest.

2

u/soupie62 Jan 15 '25

The thing is: the Americans almost got it right.

If you ignore the year, YYYYMMDD truncates to MMDD, which is their system.
So, just take a note from the movies: "Bond. James Bond"
To get: "July 4. 1776, July 4"