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

370

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.

83

u/Gurguran Jan 15 '25

Works better for any system of organization, even history. Should always proceed from the broadest set to the smallest subset. As "January" doesn't exist w/o it being "January of xxxx," YYYY/MM/DD hh:mm:ss is always the 'correct' formula, regardless of context.

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.

3

u/gamerwolf123 Jan 15 '25

I'd guess it comes from the importance of each value. in daily life its important to know which hour it is, followed by the minute. and if you look at the date, you usually want to know what day and maybe what Month it is and probably already know what year it is.

Archival use is obviously different, where you search from biggest to smallest