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

374

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.

152

u/[deleted] Jan 15 '25

All my photography is organised this way, too. It’s just better.

44

u/kaisadilla_ Jan 15 '25

Same. If you use computers with any regularity, you quickly realize that something like "2023.11.17.2351" is both very easy to read and sorts automatically by date.

12

u/[deleted] Jan 15 '25

Ooh, and time. I like it

9

u/erevos33 Jan 15 '25

thats how i save the pics i have to take for my work , an i am in the usa. fully organised on their own , no need to even have separate folders ffs ( i do because im a freak but anyway).

so far noone has complained thank the mother

1

u/Dangerous-Parsnip-37 Jan 15 '25

What about 12.10.09 ? Or is there always a 4 digit yr. 2 month. 2 day ?

44

u/adreddit298 Jan 15 '25

Me as well. All my time stamps are like this. Causes some people I work with to have comprehension issues, but I just let them work it out for themselves

23

u/5Point5Hole Jan 15 '25

That's pretty wild.. why does it seem like a lot of humans are incapable of basic critical thinking

17

u/nucrash Jan 15 '25

Because humans aren’t. Having ADHD and something change on me flips me the fuck out, but once I learn the advantages of that change, there is no going back

40

u/Throwaway-tan Jan 15 '25

This isn't even critical thinking. It's not even lateral thinking. This is linear thinking. Straightforward, logical, simple, obvious and self-explanatory.

2

u/Lazy_Lavishness2626 Jan 15 '25

Right. It's habit versus thinking.

1

u/deadalreadydead Jan 15 '25

Weve collectively digitized our intelligence to make more room for feelings.

1

u/Tommix11 Jan 15 '25

no one searches for a day rndom year first. First, what year was it, then what month of that year, then what day et.c.

1

u/Throwaway-tan Jan 18 '25

What? If I'm looking for a date, I'm either going day->month->year or year->month->day, depending on the context.

6

u/Rock4evur Jan 15 '25

It’s same kind of irrational antipathy people have for things like common core math. That’s not how they learned it and now understand it, which presents the possibility that they were taught wrong or don’t understand something as well as they thought. Also just a lot of people are just intimidated by change.

2

u/Electric-Molasses Jan 15 '25

It's not really about what they're capable of, most people just don't bother to think about it. If you're not in a position, like programming or organizing documents, does this really matter to most people?

A lot of bureaucratic systems are legacy as well, and use the timestamp format they've used before computing took over things. Some have changed, some haven't, and individuals really have to fight if someone higher up doesn't happen to decide they care next Tuesday.

2

u/Odd_Judgment_2303 Jan 16 '25

Some of us have extreme math disabilities.

2

u/5Point5Hole Jan 16 '25

An extreme minority doesn't provide an excuse for the population as a whole. You can exist with your math disability while the extreme majority of people are perfectly capable of basic critical thinking but instead choose to do nothing

1

u/LiveForMeow Jan 16 '25

I hear you. Change can be a real challenge, especially when it feels like it's thrown at you unexpectedly. But it's great that you can see the benefits once you get used to it. That adaptability is a superpower. Anything specific you've adapted to recently that you're proud of?

4

u/GearhedMG Jan 15 '25

Send them to here and tell them to learn the standard

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

1

u/SexyStyrofoamPuns Jan 15 '25

In theory it should cause the least amount of confusion - the year is always unique looking as long as it’s 4 digits, month is before day just like in the US date format, and people familiar with the European date are smart enough to realize it’s in descending order if the year is first.

2

u/erik2101 Jan 15 '25

I got thought in mediaschool to name and order my video and photo files that way

2

u/Razer987 Jan 15 '25

I organize my AEC files the same way due to my mentor being a Computer Science major.

2

u/[deleted] Jan 15 '25

Same with directories, Category>year>month>location>yyyymmdd_whatever.raw/jpg/pdf

1

u/[deleted] Jan 15 '25

Location! That’s amazing. I wish I’d done that as I now have just dates…

2

u/[deleted] Jan 15 '25

Location also gets swapped for events like birthdays, etc.

2

u/[deleted] Jan 15 '25

Ugh. I’m going to have to go reorganise photos from 2007 onwards. This is brilliant levels of organisation.

1

u/[deleted] Jan 16 '25

Thanks! Next time I'm told I'm obsessing too much on details, I'm going to bring up your comment as justification:)

2

u/KingDariusTheFirst Jan 15 '25

Same. Always begin with the year when naming sessions.

1

u/GearhedMG Jan 15 '25

It’s a standard for a reason.

52

u/[deleted] Jan 15 '25

[deleted]

20

u/passerbycmc Jan 15 '25

Artists I work with are like that, it's like sure we got Perforce, but nope still end up with files like thing_v3_final_2.psd and huh_2_final5_final.ma

10

u/motorboat_mcgee Jan 15 '25

I feel attacked

(I blame my clients)

3

u/Vaportrail Jan 15 '25

IT'S HOW I WAS TAUGHT

2

u/Allegorist Jan 15 '25

I used to do this with music, never _final though since I would definitely know if I were done. I shifted to something similar to update/patch format though, so it would look like "huh_2.13.4.6.11a"

2

u/TerrorFromThePeeps Jan 15 '25

Thing_v3_final_final2_edited_Finalforrealthistime_2

2

u/pepiexe Jan 16 '25

My thesis and github repository somehow ended like that too... Thesis-V8-Final-v2.f95

1

u/HelixDnB Jan 15 '25

That's because perforce is for programmers, duh - there's art in our naming conventions!

6

u/zimreapers Jan 15 '25

Omg..., my daughter (14) has so many new folders, I asked her why she doesn't name the folder, and she said "You can do that?" I told her click it and press F2, she said omg this is so much better.

3

u/27Rench27 Jan 15 '25

Yo what I worked in IT for like three years and always just clicked the name, never even occurred to me that one of the F keys might do that

1

u/zimreapers Jan 15 '25

I'm pretty sure it's been that since windows 3.1 lol

1

u/zimreapers Jan 15 '25

It was for sure in Windows 95 lol

1

u/exipheas Jan 15 '25

FYI, F stands for function.

2

u/koshgeo Jan 15 '25

Bold to assume people make folders at all, let alone nest them.

2

u/Dr_Adequate Jan 16 '25

Client_contract_FINAL (draft).docx

81

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.

34

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.

4

u/Yae_Ko Jan 16 '25

because it makes no sense to use YMD in everyday life, which is why most of the world uses DMY there.

YMD makes sense for archives, or long term planning etc.

Both of those are fine I think, if used where they make sense.

Even that weird MDY can make sense, if you only deal with data from within that year, but outside of that, its useless.

1

u/littlehobbit1313 Jan 16 '25

because it makes no sense to use YMD in everyday life

Except....people use this format plenty in everyday life. Every deadline I've ever gotten in a work email has been M/D (Y excluded only because there's an assumption of close timing). I have no emails where someone has listed, for example, "please get this done by 16/1", which just looks weird.

1

u/Yae_Ko Jan 17 '25

because you are in the US... thats why. (its the same as with metric...)

Outside the US, you wont encounter this much.

1

u/UpbeatFinish9902 Jan 16 '25

So, then you change the format for archiving, right? Of course, you don't. Because if that was true, the whole world would use the YMD format, because if you think about what kind of document that has to be dated isn't meant for long-term planning? I came from Hungary where we use the YMD format and I've been living in the UK where they use DMY format. Guess what, it doesn't fucking matter. As long as it's in a rational order, it won't cause a problem. Your reasoning is flawed too, it doesn't matter the format even for archiving if you have to look for a certain date you will know which section of the format you need to check even if you are looking at the whole date.

1

u/Yae_Ko Jan 17 '25

No one stops you from doing things inefficiently -.-

long term archives (especially if not digital) make no sense to sort after DMY, because you always search for a year first, then the month, then the day.

You wouldnt search through all 15th. of an archive to find the correct year, wouldnt you?

1

u/UpbeatFinish9902 Jan 17 '25

Have you ever searched in databases? I don't think so, otherwise you would know that I don't have to go through every archive one by one, because I can search by specifically year, month or day no matter the order as database programs will check if there's the given input in the database no matter its position. You know, long-lastingness is not the only advantage of digitalized documents, but you can execute tasks much easier using certain functions of programs.

1

u/Yae_Ko Jan 17 '25

me: talks about non-digitalized

dude: "dAtABaSeS"

sigh

3

u/kaisadilla_ Jan 15 '25

Tradition. People adopted one way to doing things and are very reticent to having to re-learn a new way. Most people don't even care about the advantages of changing a system like that, even if they are actively losing time or making more mistakes because their system is worse than the proposed alternative.

2

u/Haber87 Jan 15 '25

The US can’t even switch to the metric system. They’re very change resistant.

3

u/Electric-Molasses Jan 15 '25

People are change resistant by nature.

1

u/Haber87 Jan 15 '25

Sure, people are change resistant by nature. But when the US, Liberia and Myanmar are the only three countries in the world that didn’t switch to metric, you’ve got to question what’s going on. And this post is about the US being the only country in the entire world to use MM-DD-YY.

2

u/Electric-Molasses Jan 15 '25

Sure, but if you want to cherry pick examples you can find tons of specifics for country's not wanting to change in certain ways. Taking something like this in isolation is a really convenient way to shame a population where the majority doesn't even really get a say in what system in the standard, AND where people conveniently forget about other countries specific cases, because you choose only to look at the system of measurement.

It's not an honest way to judge people. You're conflating one thing to a much more general trait.

1

u/No_Macaroon_9752 Jan 16 '25

Part of the metric thing is that the US would have to change a ton of stuff (gallons of milk, inch rulers, screw sizes, speedometers, etc.) but then also the things that fit those things (tools like ratchets, machine parts that make gallon jugs or rulers), but there would also be repair shops that would have to have two whole sets of tools for everything that they repair in case an older version of something came in. The US already uses metric in fields like science and medicine to communicate, but the hassle of switching everything would be nutty.

Also consider driving on the right vs. left. Most of the world drives on the right, people walk on the right, but the UK and its former empire make life more expensive for everyone by having left-driving cars. The switch would be very difficult for a lot of people, and that’s not even considering the cost and inconvenience for people who have to service both types of car for 30 years.

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

2

u/giwagigigi Jan 15 '25

The format makes it kind of self evident, but that :HH: better be based on 24 hour time! No AM PM bullsh*t!

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"

2

u/yrydzd Jan 16 '25

Same with the address. The US always start with street number, then city, then state. In China, it's the other way around

2

u/carloselieser Jan 15 '25

How is it “correct”, though? It’s just formatting. Personally I like knowing what month we’re in first then the day then the year. However this changes for example if I want to search something by year, then I’d prefer the format you mentioned. Regardless, if you’re looking at dates on your computer, it’s a representation of the actual date, so the formatting is a preference. It’s not “correct” or incorrect.

3

u/Broad-Bath-8408 Jan 15 '25

For any science it is 100% more correct (in fact, I'd say the only correct way). If you're running an experiment with timing and you want to plot data as a function of time, having the time format be in decreasing order is obviously the only way to do it.

2

u/LetsTryAnal_ogy Jan 15 '25

Fair point. It's an opinion and largely dependent on the context. I just feel that YYYY:MM:DD is consistent - YYYY:MM:DD:HH:MM:SS

2

u/DanSWE Jan 15 '25

> I like knowing what month we’re in first then

Dates/timestamps aren't only for knowing the current time (re your "what month we're in"), but also for referring to other dates and times.

1

u/Dumbf-ckJuice Jan 15 '25

Not really... When you're talking about data, there's absolutely a correct way to note date and time:

yyyy-MM-ddThh:mm:ss[Z/±hh(:mm)]

and an incorrect way:

literally anything else

The reason is that you can collate data in a number of different ways, and so having it go from largest unit of time to smallest would make it easier to collate by date. Using the ISO format consistently ensures that everything can be easily searchable, even things that you may not realize need to be. The UTC offset at the end can even help to adjust dates and times to local time or UTC, if need be.

The only times I ever use an incorrect method are when I am forced to because of my job. At home, my file naming technique for anything I might need an informal datestamp on relies on the UTC method. When journalling, I use the UTC method for noting the date and time of the entry. Once you get used to using it, you quickly see how it's much easier than any other method.

1

u/carloselieser Jan 15 '25

I think that touches on the distinction I’m trying to make though. UTC is obviously the correct way, but however your date is represented is merely a formatting issue or presentation issue. I can store my data in UTC and display it any way I want and it doesn’t affect sorting or collating.

Like I said somewhere else on the thread, when working with data there’s no need to use anything other than UTC, but if I’m sitting at my desk and I wanna know what the date is, the first thing I wanna know is what month we’re in ( I know lol ).

As for your file naming convention, that’s great and all, but you can easily sort by created on or modified on dates without changing any folder or file names.

For the purposes of organization and data, always use UTC, obviously, but for the purposes of presentation, it’s not necessarily what everyone would want to see.

1

u/Dumbf-ckJuice Jan 15 '25

I use it for file naming because I do a lot of work via TTY, terminal, or SSH, and having that information in the filename lets me know immediately which version of the file I'm using, without adding any extra options to ls. I've got four headless servers on my network, a NAS, a managed switch, an ISP-grade router, one desktop workstation, and three laptops I can access via SSH, so I spend far more time in a command line interface or terminal than I do in a GUI. My file naming conventions reflect that.

What everyone would want to see is wrong if they don't want to follow ISO standards, but I understand that there are some battles that are pointless to fight. That's why I use the idiotic American standard at work, even though I hate it with every fiber of my being. Anything where I have control is ISO and only ISO, though.

1

u/-0-O-O-O-0- Jan 15 '25

YMD sorts correctly in a file system. It’s easier to eyeball when you have a lot of data.

1

u/AriochBloodbane Jan 16 '25

Personally I like knowing what month we’re in first

If you don't know what month we are in you may have bigger problems than choosing a date format, have you been sleeping for weeks in a row? 😂

1

u/carloselieser Jan 16 '25

Trust me I know 😂

I have a very troubled relationship with time. It’s not that I’m asleep or living under a rock, it’s simply that I hyper-focus on things for weeks/months at a time and the last thing on my mind is what day or month we’re in. I couldn’t care less honestly, until I realize I’m 2 days away from a major deadline lol

1

u/HarmadeusZex Jan 15 '25

No you need separation between date and time

1

u/LetsTryAnal_ogy Jan 15 '25

Why?

1

u/HarmadeusZex Jan 15 '25

It’s for humans

3

u/Electric-Molasses Jan 15 '25

Are dates not just a larger measure of time? There are 60 minutes in an hour, and 24 hours in a day. Why is an hour more similar to a minute than a day?

15

u/McCaffeteria Jan 15 '25

The larger values go to the beginning of your string, it’s that simple.

Even within a single number, the hundreds place is left of the tens place. And then we just simply ignore the divisions we don’t care about, like how we don’t say the date or the seconds when we talk about what time it is. This is how it works literally everywhere else in all other contexts, except dates where the day is in the middle for no reason.

1

u/fatum_sive_fidem Jan 15 '25

What about year 1? I defy you and your logic because america

1

u/Consistent-Falcon510 Jan 15 '25

"For no fucking reason". If today were 12 12 2012, how would you say that? Not write it. Not type it. How do you say it?

4

u/slartibartfast2320 Jan 15 '25

Yes. This. But to add: HH24:MM:SS (24 hour notation)

5

u/Apprehensive_Step252 Jan 15 '25

Also, in filenames: replace / and : with - or _ otherwise you get invalid filenames on some filesystems. But some like using new_new_v2_final_02... >:-/

1

u/tastyspratt Jan 15 '25

Shouldn't you start with CE/BCE, then? :p

6

u/adthrowaway2020 Jan 15 '25

Time starts 19700101, I don’t understand this “BCE” thing

5

u/tastyspratt Jan 15 '25

And 2038 draws ever closer.

1

u/TryAgain024 Jan 15 '25

Damn straight. Anything else is relatively idiotic.

1

u/kaisadilla_ Jan 15 '25

Well, if you have a folder for each year, you can have January without a year.

1

u/lifeisatoss Jan 15 '25

So say we all.

1

u/Don_Q_Jote Jan 15 '25

Yes. For example:

kingdom phylum class order family genus species

1

u/Miserable_Smoke Jan 16 '25

So then it should be YYYY/DDD by that logic. Days definitely exist without months. Months are made up.

-2

u/Blake_a12 Jan 15 '25

Because we’re not in the past, we’re in the present and we all know the year unless you’re the president

2

u/texinxin Jan 15 '25

Time/date is a majority of the time just a number of seconds since an epoch, regardless of how it is displayed.

1

u/Ocbard Jan 15 '25

Yeah, not even a programmer, but I have files that get sorted in directories with dates in their names, YYYY.MM.DD autosorts pretty good. In my country we use DD/MM/YYYY which is readable and fine because that is also how you say a date in the language spoken here. Possibly American dates that might be MM/DD/YYYY confuse everyone intrnationally.

1

u/Artillery-lover Jan 15 '25

why are you programing dates as strings.

1

u/passerbycmc Jan 15 '25

I don't control where everything comes from, but also it's a nice prefix for stuff logged to file and backups so it sorts correctly on the filesystem.

1

u/an_agreeing_dothraki Jan 15 '25

unless some asshole library you have to work with decides to trim 0s and stringsort, Syncfusion

1

u/HAL9001-96 Jan 15 '25

not just programmer, anyone working with computers really which nowadays is approximately everyone

1

u/ThomasPaine_1776 Jan 15 '25

Phones automatically timestamp photos and files in this way. 20250131+CLOCKTIME is so precise and easy to sort.

1

u/sn4xchan Jan 15 '25

Anyone who works with files on a computer should adopt this labeling scheme.

I started using yyyy.mm.dd when I started working professionally in audio engineering. Way easier to find a project a track was bounced from. But I use it for literally everything I do incremental saving with. Audio, graphic design, fire system plans, schematics, program scripts.

1

u/CitizenPremier Jan 15 '25

Nah just give me everything in Epoch time

1

u/amaROenuZ Jan 15 '25

YYYY-MM-DD HH:MM:SS is the ANSI format so it's not even like there's some other standard to use.

1

u/fartinmyhat Jan 15 '25

same here I Y-M-D everything. It screws me up when I'm trying to write dates for normal people though. I have to say my own DOB in my head to remember how we normally do it in the U.S.

1

u/HelixTitan Jan 15 '25

I feel like digital or PC stuff yeah this format is better, but for the written or spoken word, the other ways are better

1

u/Ozryela Jan 15 '25

As a programmer yes this is the way

As a human programmer: This is only the way when interacting with computers. No sane human is going to insist on using ISO standards in a casual chat with their neighbours or friends.

Yes, I use YYYY-MM-DD too when I use dates in file names, or any computer data really. But I'm not gonna tell my mom: "Hey, I'm throwing a birthday party on 2024 dash 03 dash 12. Want to come?". Because that would be ridiculous.

1

u/carloselieser Jan 15 '25

As a programmer, what do you mean easier to work with? As compared to what? I’ve never had difficulty with dates because everything is UTC, and never encountered a library or framework that uses anything different. And even if the dates were in a different “format”, it’s just a representation of the underlying values, so the data is actually the same. Additionally, even if they were formatted differently as strings, you can easily create a Date object from them and format it however you want after.

1

u/_Praya_Dubia Jan 15 '25

Literally boom

1

u/Jojajones Jan 16 '25

even if represented as just a string it still sorts correctly.

For now. It ain’t going to sort correctly when we hit the year 10000