Earlier quoted context omitted.
Not wanting to be a complete BSD bigot, I can't actually remember if this broke in the {Free,Net,Open}BSD world as badly. The 2015 docs for FreeBSD don't help (oh, for a time machine) but go to "you can test what we do" which is good. https://www.freebsd.org/doc/en_US.ISO8859-1/articles/leap-se...
BSD is actually worse, it doesn't handle leap seconds at all, it simply ignores their existence and assumes the clock was simply inaccurate. That's fine as far as it goes, but make sure never to use a BSD machine as an NTP server or you will cause a lot of confusion for any servers downstream.
Insane complexity of calendrically correct date and time operations
71–80 of 146 posts
Re: Insane complexity of calendrically correct date and time operations
#72Is it true that Unix time is as simple as it seems? Is there exactly one second between adjacent integers? Do all Unix time values occur only once simultaneously around the world?
What you want is probably TAI [1], Unix Time has leap seconds. [1] https://en.wikipedia.org/wiki/International_Atomic_Time
Re: Insane complexity of calendrically correct date and time operations
#73Earlier quoted context omitted.
simple: call them by their ordinal/cardinal names. that's what east asian calendars do. october is "month ten" https://en.wikipedia.org/wiki/Japanese_calendar#Months https://en.wikipedia.org/wiki/Names_of_the_days_of_the_week#...
That's what we did in latin! October is month 8! And then some dude messed it up.
Re: Insane complexity of calendrically correct date and time operations
#74Wow. I live in Europe, and find it weird that people can consider the week to start on Sunday.
I guess everything that may appear normal within a cultural frame of reference can be off in another, even the most basic of things!
Re: Insane complexity of calendrically correct date and time operations
#75> Weeks start on Sunday in the United States, Monday in Europe, and a couple of places start on Saturday. Wow. I live in Europe, and find it weird that people can consider the week to start on Sunday. I guess everything that may appear normal within a cultural frame of reference can be off in another, even the most basic of things!
Re: Insane complexity of calendrically correct date and time operations
#76I have implemented a large application which does a lot of time calculations, and run onto most of the issues listed in the article, except that I didn't use hewbrew calendars :).
Re: Insane complexity of calendrically correct date and time operations
#77> False. Weeks start on Sunday in the United States, Monday in Europe, and a couple of places start on Saturday.
In some countries weeks start on Mondays.
> All the important years are four digits long
> False. It’s the year Heisei 30 in the Japanese calendar.
Or 13.0.5.15.0 in the Maya calendar.
Re: Insane complexity of calendrically correct date and time operations
#78Re: Insane complexity of calendrically correct date and time operations
#79> Weeks start on Sunday in the United States, Monday in Europe, and a couple of places start on Saturday. Wow. I live in Europe, and find it weird that people can consider the week to start on Sunday. I guess everything that may appear normal within a cultural frame of reference can be off in another, even the most basic of things!
You are almost certainly neither Portuguese nor Maltese.
In these two European languages, the days of the week are literally numbered as if Sunday were the first day of the week.
Portuguese: Monday is "segunda-feira" which means something like "second market day" Maltese: Monday is "it-Tnejn", which AFAICT means "the second [day]"
In both languages, most of the other days have similar names, representing their position in a week that starts on Sunday.
Re: Insane complexity of calendrically correct date and time operations
#80This could very well have been called “ Falsehoods programmers believe about date and time calculations ”. It fits very well into the pattern of other similarly titled lists which have been published in recent years.
https://infiniteundo.com/post/25326999628/falsehoods-program... edit: which cites https://infiniteundo.com/post/25326999628/falsehoods-program... (from HN's own patio11) as inspiration, as the original "Falsehoods programmers believe about X".