Search code examples
boosttimezoneboost-date-timeiana

Generating date_time_zonespec.csv for boost::date_time from IANA's time zone database?


The time zone database (date_time_zonespec.csv or boost_1_55_0/libs/date_time/data/date_time_zonespec.csv) of boost::date_time library seems not to be up to date. Is there a way to generate it from latest version of IANA time zone database?


Solution

  • This should be the answer found in boost::locale reference:

    Why don't you use Boost.DateTime time zone support?

    Boost.DateTime's time zone support is broken. Time zones can not be represented with a simple table of rules where daylight saving depend only on certain n'th day of week in month. The daylight savings time may vary by year, political issues and many other things.