[tz] Preparing to fork tzdb

Howard Hinnant howard.hinnant at gmail.com
Tue Sep 21 03:34:25 UTC 2021

On Sep 20, 2021, at 10:57 PM, dpatte <dpatte at relativedata.com> wrote:
> When I read an astronomical journal and read of a bolide sighting in 1957 at 7:30 PM in haiti, it is important that I can attach that to a ut in 1957. But if it's now in the 'merged data' I am now out of luck.

In C++-speak:

    #include <chrono>
    #include <iostream>

        using namespace std;
        using namespace std::chrono;

        zoned_time zt{"America/Port-au-Prince", local_days{1957y/June/5} + 19h + 30min};
        cout << format("%F %T %Z", clock_cast<tai_clock>(zt.get_sys_time())) << '\n';


    1957-06-06 00:30:10 TAI

Note that programmers are hard-coding the name "America/Port-au-Prince”.


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

More information about the tz mailing list