3 ms·
> A leap second is over in a second. The problem isn't one where you hold your breath and squeeze your eyes shut for a second while the unpleasantness passes.
by vinkelhake 5y ago
> A leap second is over in a second.
The problem isn't one where you hold your breath and squeeze your eyes shut for a second while the unpleasantness passes. The problem is when you have tons of code running and you don't know exactly how it'll deal with this very rare event.
If you're faced with an upcoming leap second there are various ways of dealing with it. One way is to do an audit of the code and hope that you can verify the most important parts. Another way is to smear and hope that most programs won't be negatively affected by reported seconds being 0.00001s off.
There are other options, but I don't think there's an "obviously correct way".
- throw0101a 5y ago> Another way is to smear and hope that most programs won't be negatively affected by reported seconds being 0.00001s off. > There are other options, but I don't think there's an "obviously correct way". Well, there are ways that following reality more and less. There are also ways that have legal traceability to time sources in some regulated industries.