[tz] What's "right"?

Watson Ladd watson at cloudflare.com
Fri Nov 13 21:23:31 UTC 2020


On Fri, Nov 13, 2020 at 5:41 AM Fred Gleason <fredg at paravelsystems.com> wrote:
>
> On Nov 12, 2020, at 18:46, John Haxby <john.haxby at oracle.com> wrote:
>
> Of course, it gets messy with having, for example, the last second of the year twice and code that cares about the encore second has to work hard to deal with it.   The consequences have been quite far reaching from that original decision: it's one of the reasons clock_gettime() has clocks for finding out whether it's time for lunch and clocks for determining how long lunch actually lasted.   Less prosaically, it's why at least one program that used getttimeofday() as an interval timer panicked when an sub-second interval not so much short as negative.  (The bug is now fixed, but the hideous workarounds are still being employed because no one is sure if it is actually fixed and no one wants to find out one dark and stormy night.)
>
>
> Ok, I have to ask: what was the program?

Our authoritative DNS server for one:
https://blog.cloudflare.com/how-and-why-the-leap-second-affected-cloudflare-dns/.
It led to changes in the Go standard library:
https://go.googlesource.com/proposal/+/master/design/12914-monotonic.md.
I wouldn't say this bug admits of being fixed so much as being a
perpetual trap for the unwary that the library authors have wisely
decided to disarm.

Sincerely,
Watson Ladd

>
> And, thank you to all who have been contributing to this intriguing and most illuminating discussion.
>
> Cheers!
>
>
> |---------------------------------------------------------------------|
> | Frederick F. Gleason, Jr. |             Chief Developer             |
> |                           |             Paravel Systems             |
> |---------------------------------------------------------------------|
> |         A room without books is like a body without a soul.         |
> |                                                                     |
> |                                                         -- Cicero   |
> |---------------------------------------------------------------------|



More information about the tz mailing list