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 ([email protected])-- PGP fingerprint E24A D25B E5FE 4914 A603 49EC 7030 3EA1 9A0B 511E
signature.asc
Description: This is a digitally signed message part
_______________________________________________ LEAPSECS mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/leapsecs
