[tz] leap second theory
howard.hinnant at gmail.com
Sat Aug 17 23:38:11 UTC 2019
On Aug 17, 2019, at 4:45 PM, Paul Eggert <eggert at cs.ucla.edu> wrote:
> … the 'leapseconds' file, which nowadays is used more often than the direct approach, or at least that's my impression.
Here’s another data point for you:
This is the draft C++20 spec which specifies two clocks:
1. system_clock: Models Unix Time (does not count leap seconds).
2. utc_clock: Counts leap seconds.
And provides bidirectional mappings between these two sets of time points. And the easiest way to implement that mapping is to read in the IANA tz leapseconds file.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Message signed with OpenPGP
More information about the tz