ISO 8601 or nothing. Descending order of granularity, keep everything sorted as it should be!
I’ve said it once and I will say it again:
mkdir -p 2023/{January,February,March,April,May,June,July,August,Septembet,October,November,December}
Warning: not POSIX
USA is the edgy teen after moving out of the parents house (Europe) and finally doing stuff their own way. Not because it is practical, but because they feel rebellious.
Lol, This is probably the best explanation of America that I’ve ever heard.🤣👍🏾
Many of us are not from Europe
What year are you living in, 1951?
USA was colonized by europeans mostly, I believe ?
20% of the population in 1776 were slaves who came from Africa. There are more countries outside Europe
Majority of the world uses YYYY-MM-DD. Day 1st makes no sense. If you need the month or year it should come 1st. You need to zoom into what you need not select from any number of months with the same day. That would be like putting time with seconds 1st.
Not really, most countries use YYYY-MM-DD to save documents, photos or archive papers.
DD-MM-YYYY is for daily usage.
Date Formats:
Aug 9, 20239 Aug, 20238/9/2023 US9/8/2023 GB2023/8/9Correct Date Formats:
9 AUG, Juche 112 ✅
1691881601
Best format.
%s2023-08-09
Only for files
Oh no! A country uses a different date format, the horror!
It’s by smallest integer to largest, what’s weird about that?
12 months a year, up to 31 days a month and X number of years. It makes the most sense
Because it gets horribly fucky when you now have to figure out if a date is actually formatted as MM-DD-YY or DD-MM-YY.
Surely we’ve all handled reading an expiration date before and have wondered if we’re eating something OK or has expired months ago because they chose the other format.
(Honestly, I think both formats are shit, and the only correct way to do dates with numbers only is YYYY-MM-DD. If not, then at least use letters for months, like 30 AUG 2023)
Surely we’ve all handled reading an expiration date before and have wondered if we’re eating something OK or has expired months ago
No, I haven’t, and I don’t know anyone else who has
Try to figure out a way to sort it automatically and get back to me on why it’s stupid
Easy. Don’t store dates as a text string. That’s just bad programming.
When you say “don’t store dates as a string” what you’re really saying is “wait for someone else to solve the problem and release a library, then use that library”. That seems to be what the majority of the industry does (I’m a Java coder myself and joda is a lifesaver in that regard) but my point is that this problem is hard. Date and time stamps are a subtly difficult part of the average API monkey’s daily work.
Date stamps are stupid, but they’re nowhere near as stupid as this attempt to criticize them
Can’t believe relevant xkcd hasn’t been posted.
That standard can go fuck itself
The correct standard is dd/mm/yyyy
Why would you have minutes inbetween there and not months?
? I do have months in the “mm”
He’s making a pedantic joke. Lower case m is sometimes used to indicate minutes.
Albeit a weak one since many formats use lowercase m to indicate month. Such as programming languages like python & PHP. IBM & Microsoft standards also use lowercase m and so forth.
I did think he might be making a joke but since as you said it would be a weak one I gave him the benifit of the doubt
Yeah it’s a bit mixed bag. Powershell command get-date expects mm for minutes and MM for months, which has messed up my scripts logging few times lol
Is this where someone posts the relevant xkcd about too many standards?
Aug 9, 2023
and08/09/23
literally say the same thing.The first isn’t ambiguous at all; the second is hella ambiguous.
It’s only ambiguous because there’s a second standard.
08/09/23 literally says the 8th day of september.
They do but one informs the reader of the order of the format while the other doesn’t.
Look it’s easy, you just wait until the 13th of the month to figure out which format it is. Is 12 days really so much to ask?
I’m so excited for tomorrow
Months are dumb. Inconsistent lengths, the names are out of sync (OCTober isn’t month 8), pretend to be based on lunar cycles but not, etc.
Give us Year/Day date formats. Extra new year holiday on leap years.
You can blame that on the Romans. October was the eighth month.
09/08/2023 (I’m an American who doesn’t care what everyone in my country uses if that “custom” is nonsense…)
Do you use metric? :)
I use Fahrenheit just because it’s a pain to get everything set to Celsius and other Americans don’t understand it. But I use grams, kilos, millilitres, kilometres, etc. Yes. And if someone asks me to guess the length of an object I will give centimetres, and refuse to translate to inches and their stupid fractions.
So you use Fahrenheit because Americans don’t understand Celsius but you don’t convert to imperial for them if they don’t understand? That just seems inconsiderate as it’s really no trouble at all
Based
Nah the middle one is the easiest to read.
ISO standards… unbelievable how many people don’t get it!
The way I see it, the US just writes it the way it’s spoken. “August 9th, 2023” vs. “the 9th of August, 2023”.
No, the US just chose this order and speaks it the same way. I don’t speak it this way, you’re just used to it (just like everyone is to the way they speak it)
If it’s a file I want sorted by date the top is good. If I am talking about a date and spelling it out August the 9th of 2023 makes the most sense and seems natural, and if it’s a personal memo or date label on food I just use 08/09 with the zeros so I know it isn’t a fraction unless it’s frozen or shelf stable for long term storage where the year would be useful to know at which point it becomes 8/9/23
I thought everybody used different date formats based on need.
In UK we always say 9th of August 2023, ie the way our dates are written and i would say is more natural haha. Maybe Americans find it more natural the other way around because your dates are other way around. If you use the date system the uk has maybe it would sound more natural to speak perhaps.
I grew up on RuneScape and BBC programming, so I’ve been exposed to both formats for a long time (really fucked me up in spelling). I couldn’t say why August 9th sounds more natural, but it’s probably because most irl folks around me use it. The 9th of August didn’t sound bad, just more artificial, and it’s probably because my exposure to that spoken out was mostly media and pop culture.
Alright, then I guess change the way you read a clock too… My day to day use doesn’t include the year at all. Just mm/dd
Why change the way you read a clock? year/month/day hour:minute:second
You would never read a clock as minute:second:hour, which is analagous to how Americans phrase dates.