timezone 1.7 KB

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