[tz] Getting current tzdb version in use

Martin Burnicki martin.burnicki at meinberg.de
Thu Jul 19 13:11:50 UTC 2018

Howard Hinnant wrote:
> On Jul 19, 2018, at 3:33 AM, Martin Burnicki <martin.burnicki at meinberg.de> wrote:
>> BTW, does your implementation check the tzdb version on each call, or
>> only once after startup? In the latter case an updated tzdb version
>> would only be detected if a program (or the whole system) is restarted …
> On first access to any call that requires a tzdb lookup, the version is looked up on the local disk and cached.
> However, if the client calls reload_tzdb() (https://en.cppreference.com/w/cpp/chrono/tzdb_functions) the std::lib implementation may load a new version of the tzdb if available.

Thanks for the pointer!

Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki at meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy

More information about the tz mailing list