NetBSD/lib/libc/time
2005-06-12 05:21:25 +00:00
..
_daylight.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
asctime.c
checktab.awk
ctime.3 Use 2003-04-16 13:34:34 +00:00
difftime.c
ialloc.c
localtime.c PR/28324: Takayoshi Kochi: localtime_r(3) returns GMT 2004-11-16 04:15:28 +00:00
Makefile.inc Add a manual page for the standard-inspired offtime(3) and friends; 2004-05-10 02:02:00 +00:00
offtime.3 Add a manual page for the standard-inspired offtime(3) and friends; 2004-05-10 02:02:00 +00:00
private.h Merge tzcode2003e. 2003-12-20 00:12:05 +00:00
README
scheck.c
strftime.3 Add documentation for %v. Noted by Havard Eidnes in PR bin/25180. 2004-04-14 21:59:39 +00:00
strftime.c Don't use tm_gmtoff for %z: a strictly conforming ISO C application won't 2004-05-12 23:03:11 +00:00
strptime.3 Make casing in previous consistent. 2004-03-19 19:30:23 +00:00
strptime.c Some more optimisations - I must stop looking at this file! 2005-03-05 14:07:15 +00:00
Theory Merge tzcode2004a. 2004-05-27 20:39:49 +00:00
time2posix.3 Use 2003-04-16 13:34:34 +00:00
tz-art.htm Import tzcode2003d. 2003-10-29 20:19:13 +00:00
tz-link.htm Merge tzcode2004a. 2004-05-27 20:39:49 +00:00
tzcode2netbsd Update for tzcode2004a. 2004-05-27 20:33:31 +00:00
tzfile.5 Use 2003-04-16 13:34:34 +00:00
tzfile.h
tzselect.8
tzselect.ksh
tzset.3 Use 2003-04-16 13:34:34 +00:00
zdump.8 Merge tzcode2003d. 2003-10-29 20:43:27 +00:00
zdump.c Merge tzcode2003d. 2003-10-29 20:43:27 +00:00
zic.8 Merge tzcode2003e. 2003-12-20 00:12:05 +00:00
zic.c Merge tzcode2004a. 2004-05-27 20:39:49 +00:00

@(#)README	7.11

"What time is it?" -- Richard Deacon as The King
"Any time you want it to be." -- Frank Baxter as The Scientist
					(from the Bell System film "About Time")

The 1989 update of the time zone package featured

*	POSIXization (including interpretation of POSIX-style TZ environment
	variables, provided by Guy Harris),
*	ANSIfication (including versions of "mktime" and "difftime"),
*	SVIDulation (an "altzone" variable)
*	MACHination (the "gtime" function)
*	corrections to some time zone data (including corrections to the rules
	for Great Britain and New Zealand)
*	reference data from the United States Naval Observatory for folks who
	want to do additional time zones
*	and the 1989 data for Saudi Arabia.

(Since this code will be treated as "part of the implementation" in some places
and as "part of the application" in others, there's no good way to name
functions, such as timegm, that are not part of the proposed ANSI C standard;
such functions have kept their old, underscore-free names in this update.)

And the "dysize" function has disappeared; it was present to allow compilation
of the "date" command on old BSD systems, and a version of "date" is now
provided in the package.  The "date" command is not created when you "make all"
since it may lack options provided by the version distributed with your
operating system, or may not interact with the system in the same way the
native version does.

Since POSIX frowns on correct leap second handling, the default behavior of
the "zic" command (in the absence of a "-L" option) has been changed to omit
leap second information from its output files.

Here is a recipe for acquiring, building, installing, and testing the
tz distribution on a GNU/Linux or similar host.

	mkdir tz
	cd tz
	wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
	gzip -dc tzcode*.tar.gz | tar -xf -
	gzip -dc tzdata*.tar.gz | tar -xf -

Be sure to read the comments in "Makefile" and make any changes needed
to make things right for your system, especially if you are using some
platform other than GNU/Linux.  Then run the following commands,
substituting your desired installation directory for "$HOME/tzdir":

	make TOPDIR=$HOME/tzdir install
	$HOME/tzdir/etc/zdump -v America/Los_Angeles

To use the new functions, use a "-ltz" option when compiling or linking.

Historical local time information has been included here not because it
is particularly useful, but rather to:

*	give an idea of the variety of local time rules that have
	existed in the past and thus an idea of the variety that may be
	expected in the future;

*	provide a test of the generality of the local time rule description
	system.

The information in the time zone data files is by no means authoritative;
if you know that the rules are different from those in a file, by all means
feel free to change file (and please send the changed version to
tz@elsie.nci.nih.gov for use in the future).  Europeans take note!

Thanks to these Timezone Caballeros who've made major contributions to the
time conversion package:  Keith Bostic; Bob Devine; Paul Eggert; Robert Elz;
Guy Harris; Mark Horton; John Mackin; and Bradley White.  Thanks also to
Michael Bloom, Art Neilson, Stephen Prince, John Sovereign, and Frank Wales
for testing work, and to Gwillim Law for checking local mean time data.
None of them are responsible for remaining errors.

Look in the ~ftp/pub directory of elsie.nci.nih.gov
for updated versions of these files.

Please send comments or information to tz@elsie.nci.nih.gov.