logoalt Hacker News

pbrowne011 • yesterday at 6:13 PM • 1 reply • view on HN

Nice! I appreciated the documentation for tzdb on avoiding embedding and the thought process behind using "rearguard" data [1]. Some related GitHub issues are also worth reading [2] [3].

[1] https://docs.rs/jiff-tzdb/latest/jiff_tzdb/#data-generation

[2] https://github.com/BurntSushi/jiff/issues/278

[3] https://github.com/BurntSushi/jiff/issues/279


Replies

barchar • yesterday at 7:09 PM

I do wish they could use the system database on windows. Windows does maintain this data, but it's not in the same format.

The C++ date-time library goes and loads the system copy of ICU (which is updated via windows update) and pulls the tz data from ICU's calendar api.