NetBSD/lib/libc/time
christos 33d9f9e08d Welcome to tzcode 2013e:
Changes affecting API

    The 'zic' command now outputs a dummy transition when far-future
    data can't be summarized using a TZ string, and uses a 402-year
    window rather than a 400-year window.  For the current data, this
    affects only the Asia/Tehran file.  It does not affect any of the
    time stamps that this file represents, so zdump outputs the same
    information as before.  (Thanks to Andrew Main (Zefram).)

    The 'date' command has a new '-r' option, which lets you specify
    the integer time to display, a la FreeBSD.

    The 'tzselect' command has two new options '-c' and '-n', which lets you
    select a zone based on latitude and longitude.

    The 'zic' command's '-v' option now warns about constructs that
    require the new version-3 binary file format.  (Thanks to Arthur
    David Olson for the suggestion.)

    Support for floating-point time_t has been removed.
    It was always dicey, and POSIX no longer requires it.
    (Thanks to Eric Blake for suggesting to the POSIX committee to
    remove it, and thanks to Alan Barrett, Clive D.W. Feather, Andy
    Heninger, Arthur David Olson, and Alois Treindl, for reporting
    bugs and elucidating some of the corners of the old floating-point
    implementation.)

    The signatures of 'offtime', 'timeoff', and 'gtime' have been
    changed back to the old practice of using 'long' to represent UT
    offsets.  This had been inadvertently and mistakenly changed to
    'int_fast32_t'.  (Thanks to Christos Zoulos.)

    The code avoids undefined behavior on integer overflow in some
    more places, including gmtime, localtime, mktime and zdump.

  Changes affecting the zdump utility

    zdump now outputs "UT" when referring to Universal Time, not "UTC".
    "UTC" does not make sense for time stamps that predate the introduction
    of UTC, whereas "UT", a more-generic term, does.  (Thanks to Steve Allen
    for clarifying UT vs UTC.)

  Data changes affecting behavior of tzselect and similar programs

    Country code BQ is now called the more-common name "Caribbean Netherlands"
    rather than the more-official "Bonaire, St Eustatius & Saba".

    Remove from zone.tab the names America/Montreal, America/Shiprock,
    and Antarctica/South_Pole, as they are equivalent to existing
    same-country-code zones for post-1970 time stamps.  The data for
    these names are unchanged, so the names continue to work as before.

  Changes affecting code internals

    zic -c now runs way faster on 64-bit hosts when given large numbers.

    zic now uses vfprintf to avoid allocating and freeing some memory.

    tzselect now computes the list of continents from the data,
    rather than have it hard-coded.

    Minor changes pacify GCC 4.7.3 and GCC 4.8.1.

  Changes affecting the build procedure

    The 'leapseconds' file is now generated automatically from a
    new file 'leap-seconds.list', which is a copy of
    <ftp://time.nist.gov/pub/leap-seconds.list>.
    A new source file 'leapseconds.awk' implements this.
    The goal is simplification of the future maintenance of 'leapseconds'.

    When building the 'posix' or 'right' subdirectories, if the
    subdirectory would be a copy of the default subdirectory, it is
    now made a symbolic link if that is supported.  This saves about
    2 MB of file system space.

    The links America/Shiprock and Antarctica/South_Pole have been
    moved to the 'backward' file.  This affects only nondefault builds
    that omit 'backward'.

  Changes affecting documentation and commentary

    Changes to the 'tzfile' man page

      It now mentions that the binary file format may be extended in
      future versions by appending data.

      It now refers to the 'zdump' and 'zic' man pages.

    Changes to the 'zic' man page

      It lists conditions that elicit a warning with '-v'.

      It says that the behavior is unspecified when duplicate names
      are given, or if the source of one link is the target of another.

      Its examples are updated to match the latest data.

      The definition of white space has been clarified slightly.
      (Thanks to Michael Deckers.)

    Changes to the 'Theory' file

      There is a new section about the accuracy of the tz database,
      describing the many ways that errors can creep in, and
      explaining why so many of the pre-1970 time stamps are wrong or
      misleading (thanks to Steve Allen, Lester Caine, and Garrett
      Wollman for discussions that contributed to this).

      The 'Theory' file describes LMT better (this follows a
      suggestion by Guy Harris).

      It refers to the 2013 edition of POSIX rather than the 2004 edition.

      It's mentioned that excluding 'backward' should not affect the
      other data, and it suggests at least one zone.tab name per
      inhabited country (thanks to Stephen Colebourne).

      Some longstanding restrictions on names are documented, e.g.,
      'America/New_York' precludes 'America/New_York/Bronx'.

      It gives more reasons for the 1970 cutoff.

      It now mentions which time_t variants are supported, such as
      signed integer time_t.  (Thanks to Paul Goyette for reporting
      typos in an experimental version of this change.)

      (Thanks to Philip Newton for correcting typos in these changes.)

    Documentation and commentary is more careful to distinguish UT in
    general from UTC in particular.  (Thanks to Steve Allen.)

    Add a better source for the Zurich 1894 transition.
    (Thanks to Pierre-Yves Berger.)

    Update shapefile citations in tz-link.htm.  (Thanks to Guy Harris.)
2013-09-20 19:06:54 +00:00
..
_daylight.c
asctime.c welcome to tzcode2012h via patch. 2012-10-28 17:11:33 +00:00
checktab.awk Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
ctime.3 Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
difftime.c Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
getdate.3 And two more pastos in examples: December and January are in standard EST, 2012-12-14 23:26:17 +00:00
getdate.c
ialloc.c remove register 2012-10-26 18:29:34 +00:00
localtime.c Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
Makefile Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
Makefile.inc annotate that some functions use non-literal format strings. 2011-08-14 09:07:37 +00:00
offtime.3 Xref tm(3). 2011-04-14 05:50:49 +00:00
private.h Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
README merge 2012e 2012-08-09 12:38:25 +00:00
scheck.c remove "register" in new code 2013-07-17 23:09:26 +00:00
strftime.3 Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
strftime.c Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
strptime.3 Xref tm(3). 2011-04-12 08:40:34 +00:00
strptime.c Provide explicit LC_C_LOCALE accessor and drop the various NULL checks. 2013-05-17 12:55:56 +00:00
Theory Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
time2posix.3 Sort SEE ALSO, add a serial comma. 2010-12-17 01:30:14 +00:00
tz-art.htm welcome to 2013d 2013-07-17 20:13:04 +00:00
tz-link.htm Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
tzcode2netbsd
tzfile.5 Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
tzfile.h Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
tzselect.8 Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
tzselect.ksh Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
tzset.3 Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
version.h Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
zdump.8 Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
zdump.c Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
zic.8 Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00
zic.c Welcome to tzcode 2013e: 2013-09-20 19:06:54 +00:00

README for the tz distribution

This file is in the public domain, so clarified as of
2009-05-17 by Arthur David Olson.

"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 --retr-symlinks 'ftp://ftp.iana.org/tz/tz*-latest.tar.gz'
	gzip -dc tzcode-latest.tar.gz | tar -xf -
	gzip -dc tzdata-latest.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 to:

*	provide a compendium of data about the history of civil time
	that is useful even if the data are not 100% accurate;

*	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;
the files currently do not even attempt to cover all time stamps before
1970, and there are undoubtedly errors even for time stamps since 1970.
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@iana.org 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 <ftp://ftp.iana.org/tz/releases/>
for updated versions of these files.

Please send comments or information to tz@iana.org.

Postscript:  The README above is largely unmodified (aside from details
of mailing list and ftp archive addresses) from that prepared many years
ago by Arthur David Olson, to whom the timezone community owes the
greatest debt of all.  Arthur is not currently maintaining this data or
code (though he remains involved).