Utility to dump raw values from binary zoneinfo files
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'
participants (1)
-
Andrew Paprocki