xref: /freebsd/contrib/file/magic/Magdir/timezone (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*43a5ec4eSXin LI# $File: timezone,v 1.13 2021/07/21 17:57:20 christos Exp $
4b6cee71dSXin LI# timezone:  file(1) magic for timezone data
5b6cee71dSXin LI#
6b6cee71dSXin LI# from Daniel Quinlan (quinlan@yggdrasil.com)
7b6cee71dSXin LI# this should work on Linux, SunOS, and maybe others
8b6cee71dSXin LI# Added new official magic number for recent versions of the Olson code
9*43a5ec4eSXin LI0	name	timezone
10b6cee71dSXin LI>4	byte	0	\b, old version
11b6cee71dSXin LI>4	byte	>0	\b, version %c
12b6cee71dSXin LI>20	belong	0	\b, no gmt time flags
13b6cee71dSXin LI>20	belong	1	\b, 1 gmt time flag
14b6cee71dSXin LI>20	belong	>1	\b, %d gmt time flags
15b6cee71dSXin LI>24	belong	0	\b, no std time flags
16*43a5ec4eSXin LI>24	belong	1	\b, 1 std time flag
17b6cee71dSXin LI>24	belong	>1	\b, %d std time flags
18b6cee71dSXin LI>28	belong	0	\b, no leap seconds
19b6cee71dSXin LI>28	belong	1	\b, 1 leap second
20b6cee71dSXin LI>28	belong  >1	\b, %d leap seconds
21b6cee71dSXin LI>32	belong	0	\b, no transition times
22b6cee71dSXin LI>32	belong	1	\b, 1 transition time
23b6cee71dSXin LI>32	belong  >1	\b, %d transition times
24*43a5ec4eSXin LI>36	belong	0	\b, no local time types
25*43a5ec4eSXin LI>36	belong	1	\b, 1 local time type
26*43a5ec4eSXin LI>36	belong	>1	\b, %d local time types
27*43a5ec4eSXin LI>40	belong	0	\b, no abbreviation chars
28*43a5ec4eSXin LI>40	belong	1	\b, 1 abbreviation char
29*43a5ec4eSXin LI>40	belong	>1	\b, %d abbreviation chars
30*43a5ec4eSXin LI
31*43a5ec4eSXin LI0	string	TZif	timezone data
32*43a5ec4eSXin LI>51	string	TZif	\b(slim)
33*43a5ec4eSXin LI>>51	use timezone
34*43a5ec4eSXin LI>51	default x	\b(fat)
35*43a5ec4eSXin LI>>0	use timezone
36*43a5ec4eSXin LI
37b6cee71dSXin LI0	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
38b6cee71dSXin LI0	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
39b6cee71dSXin LI0	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
40b6cee71dSXin LI0	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
41b6cee71dSXin LI0	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
42b6cee71dSXin LI0	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