xref: /dragonfly/contrib/file/magic/Magdir/timezone (revision 7b80531f545c7d3c51c1660130c71d01f6bccbe0)
1
2#------------------------------------------------------------------------------
3# $File: timezone,v 1.13 2021/07/21 17:57:20 christos Exp $
4# timezone:  file(1) magic for timezone data
5#
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
90         name      timezone
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
310         string    TZif      timezone data
32>51       string    TZif      \b(slim)
33>>51      use timezone
34>51       default x \b(fat)
35>>0       use timezone
36
370         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
380         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
390         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
400         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
410         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
420         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
43