README 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. %W%
  2. This file is in the public domain, so clarified as of
  3. 2009-05-17 by Arthur David Olson.
  4. "What time is it?" -- Richard Deacon as The King
  5. "Any time you want it to be." -- Frank Baxter as The Scientist
  6. (from the Bell System film "About Time")
  7. The 1989 update of the time zone package featured
  8. * POSIXization (including interpretation of POSIX-style TZ environment
  9. variables, provided by Guy Harris),
  10. * ANSIfication (including versions of "mktime" and "difftime"),
  11. * SVIDulation (an "altzone" variable)
  12. * MACHination (the "gtime" function)
  13. * corrections to some time zone data (including corrections to the rules
  14. for Great Britain and New Zealand)
  15. * reference data from the United States Naval Observatory for folks who
  16. want to do additional time zones
  17. * and the 1989 data for Saudi Arabia.
  18. (Since this code will be treated as "part of the implementation" in some places
  19. and as "part of the application" in others, there's no good way to name
  20. functions, such as timegm, that are not part of the proposed ANSI C standard;
  21. such functions have kept their old, underscore-free names in this update.)
  22. And the "dysize" function has disappeared; it was present to allow compilation
  23. of the "date" command on old BSD systems, and a version of "date" is now
  24. provided in the package. The "date" command is not created when you "make all"
  25. since it may lack options provided by the version distributed with your
  26. operating system, or may not interact with the system in the same way the
  27. native version does.
  28. Since POSIX frowns on correct leap second handling, the default behavior of
  29. the "zic" command (in the absence of a "-L" option) has been changed to omit
  30. leap second information from its output files.
  31. Here is a recipe for acquiring, building, installing, and testing the
  32. tz distribution on a GNU/Linux or similar host.
  33. mkdir tz
  34. cd tz
  35. wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
  36. gzip -dc tzcode*.tar.gz | tar -xf -
  37. gzip -dc tzdata*.tar.gz | tar -xf -
  38. Be sure to read the comments in "Makefile" and make any changes needed
  39. to make things right for your system, especially if you are using some
  40. platform other than GNU/Linux. Then run the following commands,
  41. substituting your desired installation directory for "$HOME/tzdir":
  42. make TOPDIR=$HOME/tzdir install
  43. $HOME/tzdir/etc/zdump -v America/Los_Angeles
  44. To use the new functions, use a "-ltz" option when compiling or linking.
  45. Historical local time information has been included here to:
  46. * provide a compendium of data about the history of civil time
  47. that is useful even if the data are not 100% accurate;
  48. * give an idea of the variety of local time rules that have
  49. existed in the past and thus an idea of the variety that may be
  50. expected in the future;
  51. * provide a test of the generality of the local time rule description
  52. system.
  53. The information in the time zone data files is by no means authoritative;
  54. the files currently do not even attempt to cover all time stamps before
  55. 1970, and there are undoubtedly errors even for time stamps since 1970.
  56. If you know that the rules are different from those in a file, by all means
  57. feel free to change file (and please send the changed version to
  58. tz@elsie.nci.nih.gov for use in the future). Europeans take note!
  59. Thanks to these Timezone Caballeros who've made major contributions to the
  60. time conversion package: Keith Bostic; Bob Devine; Paul Eggert; Robert Elz;
  61. Guy Harris; Mark Horton; John Mackin; and Bradley White. Thanks also to
  62. Michael Bloom, Art Neilson, Stephen Prince, John Sovereign, and Frank Wales
  63. for testing work, and to Gwillim Law for checking local mean time data.
  64. None of them are responsible for remaining errors.
  65. Look in the ~ftp/pub directory of elsie.nci.nih.gov
  66. for updated versions of these files.
  67. Please send comments or information to tz@elsie.nci.nih.gov.