[tz] leap second theory

Howard Hinnant 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:

http://eel.is/c++draft/time.clock.utc.overview#1

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.

Howard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://mm.icann.org/pipermail/tz/attachments/20190817/cc622b59/signature.asc>


More information about the tz mailing list