Re:Why is day of the month 1-indexed but the month is 0-inde...
by globular-toast on Tuesday November 24, 2020 @10:22AM
(#25199230)
"March" doesn't tell you anything until you know 2020. It seems like you need the entire date before you know anything at all, so I don't think this argument holds. I think it's arbitrary like most natural language. There is no logic, it's just like that because people do it that way.
[ Parent
| on HN ]
Re:Why is day of the month 1-indexed but the month is 0-inde...
by samatman on Tuesday November 24, 2020 @02:27PM
(#25202060)
Not true, if I say "my birthday is in March" you know something about every year. If I say "my birthday is the 14th" you know... nothing useful.
It is of course arbitrary, like anything in natural language; if I thought it were a matter of logic, I would have said something other than "feels more natural"!
I name-checked ISO 8601 for a reason; that's how I write my dates now, and as a developer, if you store dates as anything other than a Unix timestamp or ISO 8601, I judge you for it ;)
but you'll notice it puts the month before the day...
Re:Why is day of the month 1-indexed but the month is 0-inde...
by globular-toast on Wednesday November 25, 2020 @05:59AM
(#25207948)
That's true for anniversaries. Some things happens every month too. "I get paid on the 29th". "The bill is due on the 1st".
ISO-8601 does indeed put the month before the day, but it puts the year before the month too. The problem people have with the American format is that it's mixed. Y-m-d makes a lot of sense, but d-m-Y kind of does too. m/d/Y is just weird and it's literally the only country in the world to do it.