README revision 130777
138494Sobrien@(#)README	7.11
2174294Sobrien
338494Sobrien"What time is it?" -- Richard Deacon as The King
438494Sobrien"Any time you want it to be." -- Frank Baxter as The Scientist
538494Sobrien					(from the Bell System film "About Time")
638494Sobrien
738494SobrienThe 1989 update of the time zone package featured
838494Sobrien
938494Sobrien*	POSIXization (including interpretation of POSIX-style TZ environment
1038494Sobrien	variables, provided by Guy Harris),
1138494Sobrien*	ANSIfication (including versions of "mktime" and "difftime"),
1238494Sobrien*	SVIDulation (an "altzone" variable)
1338494Sobrien*	MACHination (the "gtime" function)
1438494Sobrien*	corrections to some time zone data (including corrections to the rules
1538494Sobrien	for Great Britain and New Zealand)
1638494Sobrien*	reference data from the United States Naval Observatory for folks who
1738494Sobrien	want to do additional time zones
1838494Sobrien*	and the 1989 data for Saudi Arabia.
1938494Sobrien
2042629Sobrien(Since this code will be treated as "part of the implementation" in some places
2138494Sobrienand as "part of the application" in others, there's no good way to name
2238494Sobrienfunctions, such as timegm, that are not part of the proposed ANSI C standard;
2338494Sobriensuch functions have kept their old, underscore-free names in this update.)
2438494Sobrien
2538494SobrienAnd the "dysize" function has disappeared; it was present to allow compilation
2638494Sobrienof the "date" command on old BSD systems, and a version of "date" is now
2738494Sobrienprovided in the package.  The "date" command is not created when you "make all"
2838494Sobriensince it may lack options provided by the version distributed with your
2938494Sobrienoperating system, or may not interact with the system in the same way the
3038494Sobriennative version does.
3138494Sobrien
3238494SobrienSince POSIX frowns on correct leap second handling, the default behavior of
3338494Sobrienthe "zic" command (in the absence of a "-L" option) has been changed to omit
3438494Sobrienleap second information from its output files.
3538494Sobrien
3638494SobrienHere is a recipe for acquiring, building, installing, and testing the
3738494Sobrientz distribution on a GNU/Linux or similar host.
3838494Sobrien
3938494Sobrien	mkdir tz
40174294Sobrien	cd tz
4138494Sobrien	wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
4238494Sobrien	gzip -dc tzcode*.tar.gz | tar -xf -
4338494Sobrien	gzip -dc tzdata*.tar.gz | tar -xf -
4438494Sobrien
4538494SobrienBe sure to read the comments in "Makefile" and make any changes needed
4638494Sobriento make things right for your system, especially if you are using some
4738494Sobrienplatform other than GNU/Linux.  Then run the following commands,
4838494Sobriensubstituting your desired installation directory for "$HOME/tzdir":
4938494Sobrien
5038494Sobrien	make TOPDIR=$HOME/tzdir install
5138494Sobrien	$HOME/tzdir/etc/zdump -v America/Los_Angeles
5238494Sobrien
53174294SobrienTo use the new functions, use a "-ltz" option when compiling or linking.
54174294Sobrien
55174294SobrienHistorical local time information has been included here not because it
5682794Sobrienis particularly useful, but rather to:
5738494Sobrien
5838494Sobrien*	give an idea of the variety of local time rules that have
5938494Sobrien	existed in the past and thus an idea of the variety that may be
60174294Sobrien	expected in the future;
61174294Sobrien
62174294Sobrien*	provide a test of the generality of the local time rule description
63174294Sobrien	system.
64174294Sobrien
65174294SobrienThe information in the time zone data files is by no means authoritative;
66174294Sobrienif you know that the rules are different from those in a file, by all means
67174294Sobrienfeel free to change file (and please send the changed version to
68174294Sobrientz@elsie.nci.nih.gov for use in the future).  Europeans take note!
69174294Sobrien
70174294SobrienThanks to these Timezone Caballeros who've made major contributions to the
7138494Sobrientime conversion package:  Keith Bostic; Bob Devine; Paul Eggert; Robert Elz;
7238494SobrienGuy Harris; Mark Horton; John Mackin; and Bradley White.  Thanks also to
7338494SobrienMichael Bloom, Art Neilson, Stephen Prince, John Sovereign, and Frank Wales
7438494Sobrienfor testing work, and to Gwillim Law for checking local mean time data.
7538494SobrienNone of them are responsible for remaining errors.
7638494Sobrien
7738494SobrienLook in the ~ftp/pub directory of elsie.nci.nih.gov
7838494Sobrienfor updated versions of these files.
7938494Sobrien
8038494SobrienPlease send comments or information to tz@elsie.nci.nih.gov.
8138494Sobrien