[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
F-ckin Leap Seconds, how do they work?
On 03/07/2012 18:59, Saku Ytti wrote:
> Leap bugs are NOT known. Most people have no idea unixtime is not
> monotonically increasing.
> I had no idea myself until sunday, I had assumed we really go 59 -> 60 ->
> 00, but we go 59 -> 59 -> 00. So 59.1 can happen before or after 59.2.
> To me this is fundamentally and inherently broken.
Well, yeah, it's not obvious that a minute can have anywhere between 59 and
62 seconds. Certainly if POSIX were being redesigned, they ought to
consider using libtai.
Google's approach to this is interesting:
> http://googleblog.blogspot.ie/2011/09/time-technology-and-leaping-seconds.html
i.e. controlled clock slew until the correct offset is reached, thereby
allowing their developers to assume a monotonic system clock.
Nick
- References:
- F-ckin Leap Seconds, how do they work?
- From: r.engehausen at gmail.com (Roy)
- F-ckin Leap Seconds, how do they work?
- From: gbonser at seven.com (George Bonser)
- F-ckin Leap Seconds, how do they work?
- From: nanog at armoredpackets.com (AP NANOG)
- F-ckin Leap Seconds, how do they work?
- From: smb at cs.columbia.edu (Steven Bellovin)
- F-ckin Leap Seconds, how do they work?
- From: wolfgang.rupprecht at gmail.com (Wolfgang S. Rupprecht)
- F-ckin Leap Seconds, how do they work?
- From: saku at ytti.fi (Saku Ytti)
- F-ckin Leap Seconds, how do they work?
- From: valdis.kletnieks at vt.edu (valdis.kletnieks at vt.edu)
- F-ckin Leap Seconds, how do they work?
- From: saku at ytti.fi (Saku Ytti)
- F-ckin Leap Seconds, how do they work?
- From: owen at delong.com (Owen DeLong)
- F-ckin Leap Seconds, how do they work?
- From: saku at ytti.fi (Saku Ytti)