Introduction
TZif is the binary format that most UNIX systems use to calculate local time: a file holds the offsets,
changes and abbreviations of one time zone. The zic compiler and the GNU C Library use it. The
files normally have no extension. The format is standardised in RFC 9636, which replaces RFC 8536.
Structure
Each file begins with a 44-byte header: the characters TZif, a version byte (zero,
2, 3 or 4), 15 unused bytes and six 4-byte counts, with big-endian
integers. The version 1 data block uses 32-bit times. Later versions add a second header, a data block with
64-bit times and a footer holding a POSIX TZ string.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the data block records and the footer rules are in RFC 9636.
- Viewer: the site has no viewer for this format.
Links
Software
- zic – the time zone compiler that writes these files
- GNU C Library – reads them to calculate local time
Reference
- RFC 9636 – The Time Zone Information Format (TZif)