全 73 件のコメント

[–]somerandomstuffs 36ポイント37ポイント  (1子コメント)

2²/2³/2⁴

[–]Vandechoz 0ポイント1ポイント  (0子コメント)

2^(0*2^2 + 1*2^1 + 0*2^0) / 2^(0*2^2 + 1*2^1 + 1*2^0) / 2^(1*2^2 + 0*2^1 + 0*2^0)

[–]QuineQuest 24ポイント25ポイント  (2子コメント)

Have we learned nothing from y2k?

[–]notfromkentohio 17ポイント18ポイント  (0子コメント)

I've learned nothing since y2k. Is that the same

[–]huhmanz 60ポイント61ポイント  (45子コメント)

This is for dd/mm/yy ofc

[–]hmmmmmmmmmmmmmmmmm-_ 39ポイント40ポイント  (43子コメント)

So, the standard, logical date format?

Edit: For humans folks. As others have made clear, yyyy/mm/dd is obviously the most logical format of time. Obviously.

Edit2: Fuck me gently with a rolling pin. The logic is super refreshing. But please write a humour script.

[–]CoSh 89ポイント90ポイント  (24子コメント)

ISO 8601 specifies yyyy-mm-dd

I would say that's actually the most logical as it sorts properly alphanumerically.

[–]mb862 33ポイント34ポイント  (6子コメント)

It's not just the most logical, it's literally the only logical date form given that every single other number we've ever written has been big-endian.

[–]bloody-albatross 3ポイント4ポイント  (5子コメント)

Except if your language is Arabic. They write from right to left, words and numbers alike. Our mistake was to copy their number system and not adapt it to our writing direction. Just write a list of numbers of different length into a plain text file. Like we write it right now we need to ad padding to the shorter numbers to make them aligned. If numbers would be written in the same direction as the rest of our writing system we wouldn't need to do any padding.

Also I maintain that little endian is more logical. Think about it: Take a number that fits into 32bits and write it as a 32bit and as a 64bit little endian and big endian number. The little endian numbers are the same, except that the 64bit version has some additional zeros at the end. In big endian the numbers are scrambled between 32bit and 64bit when you compare binary files storing either.

But outside of such almost philosophical discussions on reddit, who cares? Just be aware to handle it correctly when you handle binary data.

[–]pacstrap 2ポイント3ポイント  (4子コメント)

Except if your language is Arabic. They write from right to left, words and numbers alike. Our mistake was to copy their number system and not adapt it to our writing direction.

Holy crap. Do you have any reading material on that?

[–]bloody-albatross 0ポイント1ポイント  (3子コメント)

No. I just saw some Arabic text somewhere (I think on Wikipedia) and realized that the numbers are written the same way we write numbers.

[–]sirin3 1ポイント2ポイント  (1子コメント)

In German two digit number are adjusted to writing direction when spoken. Which makes no sense at all

42: Zwei(2)undvierzig(40)

37: Sieben(7)unddreißig(30)

[–]bloody-albatross 0ポイント1ポイント  (0子コメント)

Yeah, I know (I'm from Austria).

[–]pacstrap 0ポイント1ポイント  (0子コメント)

An astute observation, I suppose.

[–]jjspaceman 1ポイント2ポイント  (0子コメント)

Agreed. This is far more logical to me. Sorts from biggest increments to smallest.

[–]pshendry 0ポイント1ポイント  (0子コメント)

  • Sorts alphanumerically;

  • Doesn't include slashes so it works well in filenames;

  • Is the only format using dashes so it's instantly identifiable and unambiguous, compared to slashes where 12/11/09 can be 2012-11-09, 2009-12-11 or 2009-11-12;

  • When do you ever have to save two characters by shortening the year I mean really.

As a Canadian (i.e. living in the only country where YMD, DMY and MDY are all in use, I've thought about this before.

[–]sirin3 0ポイント1ポイント  (0子コメント)

Problem is, if you use it on real life documents you have to write down two digits more than in the other formats

[–]hmmmmmmmmmmmmmmmmm-_ -1ポイント0ポイント  (12子コメント)

This coming from an organisation called the International Organisation for Standardisation...yet with the abbreviation ISO and not IOS...

(due to the greek isos meaning "equal" because why not)

Edit: yes, all in all, yyyy/mm/dd is the most logical date format for our illogical calendar system.

[–]CoSh 15ポイント16ポイント  (2子コメント)

Also because ISO is a language-neutral acronym and not specifically English.

[–]mirhagk 5ポイント6ポイント  (5子コメント)

That actually shows how good they are at standardizing. Standard naive people would assume you could use a normal acronym but then you'd have a different name in every language. Indeed they say this

Because 'International Organization for Standardization' would have different acronyms in different languages

Likewise using dd/mm/yy is stupid because it can easily get confused with mm/dd/yy or yy/mm/dd (theoretically other formats too, but those are the only three you'd see). If you see 01/02/03 you have no clue what that date is. If you see 2003-02-01 you know that date immediately.

[–]glengineer 0ポイント1ポイント  (4子コメント)

Is that February first, or January second?

[–]sirin3 0ポイント1ポイント  (0子コメント)

What if it is the second day of March ?

[–]bholzer -1ポイント0ポイント  (2子コメント)

It would make no sense whatsoever for the day to fall in between year and month

[–]glengineer -1ポイント0ポイント  (1子コメント)

"01/24/16" January 24th, 2016. The day falls between year and month in this format, so why not any other?

[–]bholzer 0ポイント1ポイント  (0子コメント)

Yes, and that format also makes no sense.

[–]OlorinTheGray 3ポイント4ポイント  (0子コメント)

I still see it as the most logical:

It allows us to just sort dates intuitively.

Way better than dd/ mm/ yyyy

[–]wrosecrans 1ポイント2ポイント  (0子コメント)

It also has a French name, and ISO is specifically used because it doesn't map to either the English or French name so neither is preferred.

[–]probably-poop -3ポイント-2ポイント  (0子コメント)

Most hilarious fact I've heard all week!

[–]BlackDeath3 -1ポイント0ポイント  (0子コメント)

properly alphanumerically

What is that even supposed to mean?

[–]Snoron 4ポイント5ポイント  (5子コメント)

I don't get how you can have said this on /r/programming and not have your comment at -100 points already... what's wrong with everyone!?

[–]NUMBERS2357 2ポイント3ポイント  (2子コメント)

It fits in with the whole "Americans do it wrong" thing, like with metric and shit.

[–]agonnaz 0ポイント1ポイント  (0子コメント)

Americans do do it wrong here, it's just that almost the rest of the world does too. There is no other unit we use that orders units with least-significant first. Time being expressed MM:HH anywhere would prompt ridicule from the rest of the world, so why would it be absolutely anything except Year Month Day order?

[–]hmmmmmmmmmmmmmmmmm-_ 0ポイント1ポイント  (1子コメント)

Obviously I'm not a golfer.

[–]lbmouse 0ポイント1ポイント  (0子コメント)

You're not wrong, you're just an asshole.

[–]stronglikedan 2ポイント3ポイント  (7子コメント)

Nope. As others have pointed out, ISO 8601 is the only logical date format (yyyy-mm-dd). I agree that a dd/mm/yy is a standard, but it ain't logical.

[–]mirhagk 1ポイント2ポイント  (0子コメント)

It's not a standard at all. It changes by country, and oftentimes within a single country

https://en.wikipedia.org/wiki/Date_format_by_country

Friggen Canada use all 3 interpretations of 01/02/03.

[–]UlyssesSKrunk -2ポイント-1ポイント  (2子コメント)

wat

No, going from smallest to largest is by far the most logical. You're using an argument from authority and it's downright moronic.

[–]BlackDeath3 0ポイント1ポイント  (0子コメント)

They've all got a different logic to them. How self-centered does somebody have to be to assert that their own preferred logic/thinking pattern is "more logical"?

[–]barfoob 0ポイント1ポイント  (0子コメント)

It's not moronic there is good reasoning behind that standard.

Benefits of going big to small (for languages that read left-to-right):

  • Lexicographical sort order is equal to chronological sort order
  • It doesn't conflict with other commonly used date formats. If you see 01/02/2016 then that could mean two things, because dd/mm/yyyy and mm/dd/yyyy are commonly used, but yyyy-dd-mm is not commonly used so it is clear that the format is yyyy-mm-dd. Because Americans lean toward mm/dd/yyyy and many other countries lean toward dd/mm/yyyy many parts of the world end up somewhere in between because they are commonly exposed to both formats creating a lot of ambiguity.
  • Consistent with basically ever other number format because big to small is the norm. For example time is always hour then minute. Digits in a number like 1234 go thousands, hundreds, tens, ones and never the other way around. When describing a distance you would use feet before inches. When displaying a decimal number you do the whole number part before the decimal part.
  • Combines better with time since time is always big to small. If you do dd/mm/yyyy hh:MM:ss then the numbers aren't even in any consistent order at all, their sequence by significance is 4, 5, 6, 3, 2, 1.
  • Better facilitates use with computer systems because yyyy-mm-dd is a favorable computer-readable format and still perfectly human readable.
  • Even though you could argue that yyyy-mm-dd is not commonly used, I would argue that it is commonly understood. If I'm signing a document I use yyyy-mm-dd because I know the reader will figure it out but with other formats an error is more likely.

[–]saijanai -3ポイント-2ポイント  (1子コメント)

Eh, ddmmmyy or ddmmmyyyy is also perfectly logical

4 aug 2016, is human readable, and there's no possibility of confusing which is a day, which is a month, an which is a year.

[–]hegbork 1ポイント2ポイント  (1子コメント)

Today is year 6102.

I woke up at 45:08 this morning.

This book costs 55 cents and 9 dollars.

He's 10 inches and 5 feet tall.

The 100m sprint world record is 58.9 seconds.

Logical format. Very.

[–]hmmmmmmmmmmmmmmmmm-_ 2ポイント3ポイント  (0子コメント)

I am 0 km, 0hm, 0dam, 1m, 8dm, 1cm, 31mm tall.

[–]Durinthal 0ポイント1ポイント  (0子コメント)

Not even logical unless you're only working in a predefined 100-year time span.

[–]Arancaytar 1ポイント2ポイント  (0子コメント)

I was all set to make a "lol other way around outside the US" shitpost, before noticing this. :P

[–]UltraChilly 17ポイント18ポイント  (11子コメント)

isn't 2016 11111100000?
edit : oh, ok NVM it's just 16 (YY)... I haven't seen anyone use this for 16 years.

[–]making-flippy-floppy 16ポイント17ポイント  (7子コメント)

Get ready for 8/4/2048, though.

[–]UltraChilly 1ポイント2ポイント  (0子コメント)

believe it or not, April 8th is actually my birthday (if we still read it as dd/mm/yy), I'll be 1000010 on the 1000/100/100000000000

[–]Silencement 1ポイント2ポイント  (2子コメント)

10000 is 16.

[–]UltraChilly 1ポイント2ポイント  (0子コメント)

yep, I edited it already :)

[–]taiarmin[S] 1ポイント2ポイント  (0子コメント)

Right, the format is dd/mm/yy, not yyyy

[–]mxvzptlk 2ポイント3ポイント  (0子コメント)

Don't be ridiculous. The only logical and way to express date and time is by specifying the number of Planck units since the Big Bang.

Disclaimer: I work for a disk drive manufacturer.

[–]ReddRicochet 1ポイント2ポイント  (0子コメント)

As an American I was like "it's not April, silly man!" Then I realized

[–]t12lucker 0ポイント1ポイント  (0子コメント)

This is cool :) Did you got a counter on this? :D

[–]tejon 0ポイント1ポイント  (0子コメント)

Hmm. I guess that makes tomorrow Body Electric Day.

[–]tekn0lust 0ポイント1ポイント  (0子コメント)

how long you been sitting on this one?

[–]Bobshayd 0ポイント1ポイント  (0子コメント)

Just wait until it's year 100000000000b

[–]FireReadyAim 0ポイント1ポイント  (0子コメント)

There are no / in binary. :(

[–]Sinity 0ポイント1ポイント  (0子コメント)

That's a perfect day...

But perfect moment?

It will happen tomorrow, at 9:04.128, + 256ns AM

Because 100/1000/10000 100000:1000000.10000000 + 100000000

Sad it's not 01.02.04 08:16.32 :<

[–]theineffablebob 0ポイント1ポイント  (0子コメント)

No, today is August 4, 2016

[–]nyteryder79 0ポイント1ポイント  (0子コメント)

what is the binary equivalent for the '/' character?