Hot take… Storing anything as UTC was a mistake and we should be using TAI for all storage and computation, only transforming into more human friendly formats for display to end users. This never needed to be a problem except we decided to make it harder to use TAI than UTC and so everything got built up off the backs of legacy bios level hardware supported UTC style clock behaviour, when we should have been using TA…
> we should be using TAI for all [...] computation How do you add a full day, if you do not know whether a leap second occured or not?
The leap second’s time is up: world votes to stop pausing clocks
341–350 of 456 posts
Re: The leap second’s time is up: world votes to stop pausing clocks
#342Earlier quoted context omitted.
You've made a very good point. All new software/systems I build will use TAI64. As an industry we should just push this move ourselves
Libraries are already available. See https://cr.yp.to/time.html and the pages linked from there.
Re: The leap second’s time is up: world votes to stop pausing clocks
#343Earlier quoted context omitted.
>Sometimes the best solution is not a technical solution (“halt the markets for 15 minutes before/after”) We've had an election recently, right on the day when DST changed. On the night of counting of the votes, the clock went 2:59 AM -> 2:00 AM. To save themselves trouble the Statistics Office instructed all vote counters that under no circumstances are they to enter or update anything in any system during the repea…
The interesting thing about DST is that it's not really repeating the hour, if you include the time zone offset in your time stamp. Here, look. Using the time zone for Norway in this example, with the `date` command on macOS. First the last second before DST ended in Norway this year. TZ=Europe/Oslo date -I seconds -jf %s 1667091599 2022-10-30T02:59:59+02:00 Then the second after. TZ=Europe/Oslo date -I seconds -jf %…
Re: The leap second’s time is up: world votes to stop pausing clocks
#344In 2015 I was working at a "fintech" company and a leap second was announced. It was scheduled for a Wednesday, unlike all others before which had happened on the weekend, when markets were closed. When the previous leap second was applied, a bunch of our Linux servers had kernel panics for some reason, so needless to say everyone was really concerned about a leap second happening during trading hours. So I was assig…
This is a good story regardless, but if you do want to derive some morals from the experience: – Seemingly simple tasks can be more complex than you expect (“add a leap second on this Wednesday”) – Real world systems can be more complex than you expect (“bunch of software I never even knew existed”) – Planning and testing can make a big difference vs. just winging it (“a bunch of our Linux servers had kernel panics f…
And yet, there are still Y2K deniers (to be fair some people have exaggerated it to the point that they're promoting it as the end of the world).
Re: The leap second’s time is up: world votes to stop pausing clocks
#345Earlier quoted context omitted.
The interesting thing about DST is that it's not really repeating the hour, if you include the time zone offset in your time stamp. Here, look. Using the time zone for Norway in this example, with the `date` command on macOS. First the last second before DST ended in Norway this year. TZ=Europe/Oslo date -I seconds -jf %s 1667091599 2022-10-30T02:59:59+02:00 Then the second after. TZ=Europe/Oslo date -I seconds -jf %…
Perhaps another moral to add: ISO8601 solves a lot of problems.
Everyone should follow RFC 3339.
Re: The leap second’s time is up: world votes to stop pausing clocks
#346Earlier quoted context omitted.
The moral of the story is that laziness is a virtue. Think of all the time that could have been saved, had you had no plans like your partners ;)
Think of all the time that could be better appropriated than on fintech in general. Seems like such a waste of resources siccing a bunch of computers against each other in a zero sum game of stock arbitrage. I will admit some of the stuff tech comes out of it is cool on its own at least.
Re: The leap second’s time is up: world votes to stop pausing clocks
#347Earlier quoted context omitted.
This is a good story regardless, but if you do want to derive some morals from the experience: – Seemingly simple tasks can be more complex than you expect (“add a leap second on this Wednesday”) – Real world systems can be more complex than you expect (“bunch of software I never even knew existed”) – Planning and testing can make a big difference vs. just winging it (“a bunch of our Linux servers had kernel panics f…
> Sometimes the best solution is not a technical solution I once came across an early 1950s Scientific American article by Bertrand Russel, IIRC. It included a cartoon. Frame one: Computer beats man at chess. Frame two: Man unplugs computer.
Re: The leap second’s time is up: world votes to stop pausing clocks
#348Hot take… Storing anything as UTC was a mistake and we should be using TAI for all storage and computation, only transforming into more human friendly formats for display to end users. This never needed to be a problem except we decided to make it harder to use TAI than UTC and so everything got built up off the backs of legacy bios level hardware supported UTC style clock behaviour, when we should have been using TA…
> more human friendly formats for display to end users.
This is what's doing the very heavy lifting in your proposal. Leaving aside not knowing when future leap seconds will occur (and thus getting mismatches when broadcasting to different computers that may or may not get the information about the leap seconds at different times) the sheer fact of the matter is that software developers are users too. They will take shortcuts and display TAI as UTC because "something, something people are lazy or uneducated."
We do not need leap seconds. We never should have implemented them. They are a scar on our software for potentially hundreds of years already for any application that seeks to have high accuracy over time.
Time is very frequently a join key or part of a join key in a database and these small differences mean countless hours wasted to investigate "couple of record" mismatches.
Just stop using leap seconds. We will be fine.
Re: The leap second’s time is up: world votes to stop pausing clocks
#349> The CGPM — which also oversees the international system of units (SI) — has proposed that no leap second should be added for at least a century, allowing UT1 and UTC to slide out of sync by about 1 minute. So, in one century, we'll get 1 minute's worth of drift. Recall that we all share the same clock within timezones, and 1 minute of drift between atomic & solar clocks is the equivalent of traveling 1/60th of your…
And of course there are things like Spain being in utc+1 despite sitting almost entirely west of Greenwich.
Re: The leap second’s time is up: world votes to stop pausing clocks
#350Does that sound bananas to you?
Of course it is. That's what we're doing with leap seconds. Only some people smear and some people leap and they don't even do it over the same time or in perfect synchronicity.
Just ditch the leap seconds. They are not worth the cost.