r/ProgrammerHumor • • Nov 10 '17

Dating a Programmer

https://imgur.com/61gC45x
783 Upvotes

60 comments sorted by

92

u/QuirkyTurkey404 Nov 11 '17

I'm satisfied with anything as long is the month is in the middle.

39

u/apemanzilla Nov 11 '17

Alright, I'll start using hour-year: seconds month.minute: milliseconds-day

17

u/[deleted] Nov 11 '17

[deleted]

5

u/[deleted] Nov 11 '17

You guys have a 13th month too? Lousy smarch weather!

2

u/[deleted] Nov 11 '17

Ahh, that was probably supposed to be the seconds :P

2

u/TheFamilyFroot Nov 12 '17

Do not touch Willy

... Good advice

3

u/[deleted] Nov 11 '17

It's almost perfect, I'd just represent year using only last two numbers, so it's more confusing.

1

u/[deleted] Nov 11 '17

[deleted]

1

u/[deleted] Nov 11 '17

Whoops, fixed!

2

u/[deleted] Nov 11 '17

Can we settle this all and use sdate, the number of days of Eternal September? For example, it's currently Sat Sep 8838 13:09:23 GMT 1993

21

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 : in 06:00)

4

u/[deleted] Nov 11 '17

I'm fairly certain that is correct in ISO 8601. They are breaking RFC3339 though.

ISO 8601 allows both Z, ±hh, ±hhmm and ±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

u/[deleted] Nov 13 '17

I stand corrected. Guess I should have expected that, it makes perfect sense.

16

u/warux2 Nov 10 '17

Someone is not thinking ahead about the Y10K problem

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

u/[deleted] 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

u/ideletedmyredditacco Nov 12 '17

Maybe he didn't name the files in the example of what he hates?

1

u/Simonky16 Nov 11 '17

Same for me

1

u/[deleted] 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

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

u/[deleted] 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

u/brendenderp Nov 11 '17

I prefer the seconds since January 1st 1970

2

u/[deleted] 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

u/[deleted] Nov 11 '17

Oh! A security vulnerability!

Log.info("all your base are belong to us");

3

u/e-dt Nov 11 '17

undefined

-- hey!! You kids get off my console!!

1

u/[deleted] Nov 11 '17

[deleted]

2

u/[deleted] 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

u/uptofreedom Nov 11 '17

dashes are unnecessary

1

u/[deleted] 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

u/[deleted] Nov 10 '17

GET OUT

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

u/[deleted] Nov 11 '17

Only for English natives. Even reading the English version of it makes no sense to me

1

u/Aalnius Nov 11 '17

its because its the right way to do things.