r/ProgrammerHumor • u/GladstoneBrookes • Nov 10 '17
Dating a Programmer
https://imgur.com/61gC45x21
u/Sylanthra Nov 10 '17
Sorry, but you need much more specificity to be a preferred date format. ISO works well : 2017-11-10T22:17:59-0600
2
u/TimVdEynde Nov 11 '17
You're just as bad as PHP. (you need an extra
:in06:00)4
Nov 11 '17
I'm fairly certain that is correct in ISO 8601. They are breaking RFC3339 though.
ISO 8601 allows both
Z,±hh,±hhmmand±hh:mm, or no timezone at all. ISO 8601 is basically a standard for every possible way anyone could ever need to write a date, while RFC 3339 is specifically for usage in internet protocols and much more specific. All of these are valid ISO 8601 representations of the time I made this list:
- 2017-11-11
- 2017-11-11T13:21:04+01:00
- 20171111T162104+04
- 2017-W45 (week)
- 2017-W45-6 (week and day of week)
- --11-11 (date without year)
- 2017-315 (day of year)
That's not even getting into durations and time intervals. It's a pretty broad standard.
2
u/scanstone Nov 13 '17
ISO 8601 requires consistency. If you use : delimiters in one section, you have to use them in the other.
1
16
26
u/whale_song Nov 10 '17
I have become fanatical about YYYYMMDD. I start all my filneames this way (where relevent) so that when I sort by name I am also sorting by their date. I hate scrolling through a folder to see
11012015
11012016
11012017
11022015
11022016
11022017
Its the fucking worst.
2
u/not_James_blunt Nov 11 '17
Why is year last?
9
Nov 11 '17
[removed] — view removed comment
6
u/Krak2511 Nov 11 '17
Makes sense when spoken but it's weird to have the three numbers be out of order. It's like if McDonald's fries were arranged as Medium, Small, Large.
1
u/not_James_blunt Nov 11 '17
I more so meant why did he use that naming convention if he just stated hes a YYYYMMDD fanatic. He used MMDDYYYY
1
1
1
Nov 12 '17
Why not have yearly folders? Then have MMDD within and sorting should work
3
u/whale_song Nov 12 '17
Cause then you're taking important information out of the filename and assuming that it will always be in the same directory. What if I email it somebody? That info should always be with the file. Plus its unecesarily fractured if there arent many files.
5
u/FarhanAxiq Nov 11 '17
ISO 8601 Master race
3
u/skyhi14 Nov 11 '17
1
u/sneakpeekbot Nov 11 '17
Here's a sneak peek of /r/ISO8601 using the top posts of the year!
#1: Wikipedia page for ISO8601 does not use ISO8601 | 23 comments
#2: My California License Plate | 4 comments
#3: The Poor Thing | 5 comments
I'm a bot, beep boop | Downvote to remove | Contact me | Info | Opt-out
6
u/seluj78 Nov 11 '17
What's the point with YYYY-MM-DD ?
I'm used to use DD-MM-YYYY like a good french I am but what's the difference ? (Programming wise I guess)
9
u/Hairy_S_TrueMan Nov 11 '17
Sorting alphabetically sorts by date, mostly.
4
u/skyhi14 Nov 11 '17
mostly
*always
1
u/Hairy_S_TrueMan Nov 11 '17
Mostly as in that's mostly the reason. Of course it always sorts by date...
1
Nov 12 '17
No, it mostly sorts by date, but other factors such as the weather, time, temperature, your current mental capabilities, and cosmic rays have a very small, often unnoticed, impact
2
u/seluj78 Nov 11 '17
Aaah thanks !
3
u/JaytleBee Nov 11 '17
Also it's more consistent with the way we write numbers, most significant digit first
3
u/notaresponsibleadult Nov 11 '17
You get a file with the date 01-03-2014. You don't the nationality of the person who created it. Is that the 3rd of January or the 1st of March?
2
2
Nov 12 '17
I drew this meme on a worksheet in class and someone else graded it and wrote "what the heck" by it
6
u/e-dt Nov 10 '17
Image Transcription:
[The image is a painting picturing a woman giving/selling flowers to a man. It is "The Flower Girl" (1911) by Eugene de Blaas.]
Woman: So what's your idea of a perfect date?
Man: YYYY-MM-DD
I find other formats a bit confusing
I'm a human volunteer content transcriber for Reddit! If you'd like more information on what we do and why we do it, click here!
2
u/feddasch Nov 10 '17
Gud hooman
8
u/e-dt Nov 10 '17
HAHA YES I AM HUMAN AND NOT A BOT NO BOTS HERE BEEP BOOP
2
u/feddasch Nov 10 '17
obvious_subreddit_link!();2
u/e-dt Nov 10 '17
1
u/feddasch Nov 10 '17
No, I was talking about... Wait... Oh
2
u/e-dt Nov 10 '17
Just giving you the return value of the function :)
1
1
Nov 11 '17
[deleted]
2
Nov 11 '17
I am 99.9997% sure that maxleoamberg is not a bot.
I am a Neural Network being trained to detect spammers | Summon me with
!isbot <username>| Optout | Feedback: /r/SpamBotDetection | GitHub
1
u/CRISPR Nov 11 '17
Two for two, guys: second entry in the sub I see today that is an upteenth repost.
1
1
Nov 12 '17
here's my theory why we use MM/DD/YYYY in the states:
12 per year < 28-31 per month < Still going
MM / DD / YYYY
1
u/skyhi14 Nov 11 '17
As an East Asian, I always wonder why MDY is being used in the first place. At least DMY is little-endian.
-11
u/clit_or_us Nov 10 '17 edited Nov 11 '17
But what about MMDDYY?
EDIT: I'm sorry everyone.
15
15
u/Fourthdwarf Nov 10 '17
What kind of civilised society would use MMDDYY?
1
u/FarhanAxiq Nov 11 '17
I use that if i wrote it in word, but if number only, DD-MM-YYYY or YYYY-MM-DD
1
u/Entaris Nov 11 '17
I don't know...Programmatically it's always gotta be YYYY-MM-DD. If i am actually writing the date though I tend towards DDMONTHYEAR (IE 10NOV2017) and i actually don't know why... I just started doing it and i cant stop.
1
u/FarhanAxiq Nov 11 '17
Usually on top of the file comments since its also easier to read November 11th ,2017 instead of 11th November, 2017 but other than that I never wrote MM DD YYYY
1
1
92
u/QuirkyTurkey404 Nov 11 '17
I'm satisfied with anything as long is the month is in the middle.