timezone 1.4 KB

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