[LEAPSECS] Time math libraries, UTC to TAI
John Sauter
John_Sauter at systemeyescomputerstore.com
Thu Jan 5 09:57:56 EST 2017
On Wed, 2017-01-04 at 21:58 -0700, Warner Losh wrote:
> But keeping the kernel time in TAI and reporting it in UTC still
> doesn't solve the userland side of things because time goes backwards
> across the leap second... If everything were in TAI and it was just a
> conversion, then some math with time breaks.
>
When the kernel reports time in UTC, it adds 1e9 to the nanoseconds
field of a timeval to indicate that a leap second is in progress.
Thus, a properly-interpreted timeval never runs backwards.
John Sauter (John_Sauter at systemeyescomputerstore.com)
--
PGP fingerprint E24A D25B E5FE 4914 A603 49EC 7030 3EA1 9A0B 511E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <https://pairlist6.pair.net/pipermail/leapsecs/attachments/20170105/174236af/attachment.pgp>
More information about the LEAPSECS
mailing list