2 #------------------------------------------------------------------------------
3 # $File: timezone,v 1.12 2020/12/28 15:59:23 christos Exp $
4 # timezone: file(1) magic for timezone data
6 # from Daniel Quinlan (quinlan@yggdrasil.com)
7 # this should work on Linux, SunOS, and maybe others
8 # Added new official magic number for recent versions of the Olson code
9 0 string TZif timezone data
10 >4 byte 0 \b, old version
11 >4 byte >0 \b, version %c
12 >20 belong 0 \b, no gmt time flags
13 >20 belong 1 \b, 1 gmt time flag
14 >20 belong >1 \b, %d gmt time flags
15 >24 belong 0 \b, no std time flags
16 >24 belong 1 \b, 1 std time flag
17 >24 belong >1 \b, %d std time flags
18 >28 belong 0 \b, no leap seconds
19 >28 belong 1 \b, 1 leap second
20 >28 belong >1 \b, %d leap seconds
21 >32 belong 0 \b, no transition times
22 >32 belong 1 \b, 1 transition time
23 >32 belong >1 \b, %d transition times
24 >36 belong 0 \b, no local time types
25 >36 belong 1 \b, 1 local time type
26 >36 belong >1 \b, %d local time types
27 >40 belong 0 \b, no abbreviation chars
28 >40 belong 1 \b, 1 abbreviation char
29 >40 belong >1 \b, %d abbreviation chars
30 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0 old timezone data
31 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\0 old timezone data
32 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0 old timezone data
33 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0 old timezone data
34 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0 old timezone data
35 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0 old timezone data