[tz] Utility to dump raw values from binary zoneinfo files

Andrew Paprocki andrew at ishiboo.com
Wed Nov 4 20:01:27 UTC 2015


I just released a little public domain utility I wrote to dump the raw
values from zic-compiled binary files.  This mainly aids anyone writing a
zoneinfo reader who wants to easily view the binary structure and/or anyone
creating contextual diffs from binary files.  I'm posting it here in case
anyone else finds it useful or wants to include it in tzcode.

-Andrew

https://github.com/apaprocki/zid

Example output:

$ ./zid /usr/share/zoneinfo/Etc/GMT
32: tzh: magic 'TZif'
32: tzh: version 2
32: tzh: ttisgmtcnt 1
32: tzh: ttisstdcnt 1
32: tzh: leapcnt 0
32: tzh: timecnt 0
32: tzh: typecnt 1
32: tzh: charcnt 4
32: gmtoff 0 isdst 0 abbrind 0 (GMT)
32: ttisstdcnt[0]: 0
32: ttisgmtcnt[0]: 0
64: tzh: magic 'TZif'
64: tzh: version 2
64: tzh: ttisgmtcnt 1
64: tzh: ttisstdcnt 1
64: tzh: leapcnt 0
64: tzh: timecnt 0
64: tzh: typecnt 1
64: tzh: charcnt 4
64: offset 0 isdst 0 abbrind 0 (GMT)
64: ttisstdcnt[0]: 0
64: ttisgmtcnt[0]: 0
TZ: 'GMT0'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mm.icann.org/pipermail/tz/attachments/20151104/9c5cf474/attachment.html>


More information about the tz mailing list