Insane complexity of calendrically correct date and time operations
111–120 of 146 posts
Re: Insane complexity of calendrically correct date and time operations
#112Wisdom and experience from senior hacker developer "Oh you are working with time and dates that is going to get "complicated"" Lets propose a new time format we could count the number of exoseconds since the beginning of the universe. Then convert that number to whatever native time format we want. Store that as a number and use that for conversion. Age of universe 4.415×10^17 seconds, 4.415×10^26 exoseconds
Re: Insane complexity of calendrically correct date and time operations
#113Earlier quoted context omitted.
What you want is probably TAI [1], Unix Time has leap seconds. [1] https://en.wikipedia.org/wiki/International_Atomic_Time
The one mistake with UNIX is that UTC is used. It should have been TAI, and leap second adjustment should have been handled by the timezone package (but at the time people weren't worried about leap seconds, so it's understandable). As it is, the system clock has to change . This is as bad as MSDOS time (and other systems which put localtime into the actual RTC). Using UTC as the time reference, independent of local…
Re: Insane complexity of calendrically correct date and time operations
#114I invented this very regular calendar while I was writing recurring-scheduling software for a scheduling tool: https://calendars.wikia.com/wiki/6*6*10_regular_calendar It was my fantasy escape from the crazy irregularities of the Gregorian calendar.
Can you imagine the transition to that calendar? People wanting their two days off every five working days are one of the problems.
Re: Insane complexity of calendrically correct date and time operations
#115Unfortunately they failed to come to consensus between different calendar designs :(
https://en.wikipedia.org/wiki/George_Eastman
https://en.wikipedia.org/wiki/Moses_B._Cotsworth
https://en.wikipedia.org/wiki/International_Fixed_Calendar
https://en.wikipedia.org/wiki/International_Fixed_Calendar_L...
https://gizmodo.com/how-the-quest-for-a-perfectly-rational-c...
Re: Insane complexity of calendrically correct date and time operations
#116Earlier 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...
Not to jump on the bigotry, but two of the three bugs mentioned in that comment were in proprietary software (Java and RRDNS) that merely runs on Linux. The hrtimer issue in 2012 was a real kernel bug though.
Re: Insane complexity of calendrically correct date and time operations
#117Earlier quoted context omitted.
Frankly I'm bit confused why civil time in general is based on UTC instead of TAI. Except for astronomy, who does benefit from observing leap seconds?
Civil timekeeping is based on UTC because we want clocks and calendars to remain synchronised with the sun. It's not just astronomers who care about whether the sun is above the horizon. If you think about it, the solar day is the one unit of time that almost everybody cares about and pays attention to. If you screw up the day, you also screw up the week and anything else that is based on counting days. Why would you…
There's been talk of setting UTC=TAI for quite a long time and I think it'd make sense. It'd take so long for TAI to drift from the actual rising and setting of the sun that we'd probably all have standardised on Swatch Beats by then anyway.
Re: Insane complexity of calendrically correct date and time operations
#118Earlier quoted context omitted.
Especially when it's all stuff that's already been covered in very similar essays. Actually introducing good libraries and methods for handling these issues properly would be much more useful than a smug collection of fallacies and a tacked-on link to ICU at the end.
I don’t understand this objection.. the method to handle these issues is to use ICU / NSCalendar.
Re: Insane complexity of calendrically correct date and time operations
#119Earlier 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...
Not to jump on the bigotry, but two of the three bugs mentioned in that comment were in proprietary software (Java and RRDNS) that merely runs on Linux. The hrtimer issue in 2012 was a real kernel bug though.
(btw, the word "bigotry" has a real meaning and this isn't it.)
Re: Insane complexity of calendrically correct date and time operations
#120Earlier quoted context omitted.
Civil timekeeping is based on UTC because we want clocks and calendars to remain synchronised with the sun. It's not just astronomers who care about whether the sun is above the horizon. If you think about it, the solar day is the one unit of time that almost everybody cares about and pays attention to. If you screw up the day, you also screw up the week and anything else that is based on counting days. Why would you…
But offset of UTC for TAI is like 37 seconds or something poxy like that. Nobody cares about this, the sun moves too slowly for that to make any difference. There's been talk of setting UTC=TAI for quite a long time and I think it'd make sense. It'd take so long for TAI to drift from the actual rising and setting of the sun that we'd probably all have standardised on Swatch Beats by then anyway.