Time zone database and code
C HTML Groff Makefile Shell Awk Perl
Permalink
Failed to load latest commit information.
.gitignore Go back to lz tarball; improve documentation Aug 30, 2016
CONTRIBUTING Clarify licensing status Dec 8, 2015
LICENSE Go back to lz tarball; improve documentation Aug 30, 2016
Makefile Make it easier to build just traditional tarballs Sep 20, 2016
NEWS * NEWS, northamerica: Mention "day of two noons". Sep 21, 2016
README Call the new tarball experimental Sep 6, 2016
Theory Prefer UT +-NN notation for UT-offset time zones in comments. Aug 25, 2016
africa Prefer UT +-NN notation for UT-offset time zones in comments. Aug 25, 2016
antarctica Go back to lz tarball; improve documentation Aug 30, 2016
asctime.c Fix EOVERFLOW-related problems noted by Chistos Zoulas. Oct 8, 2014
asia Revert Cyprus change for now Sep 12, 2016
australasia Prefer UT +-NN notation for UT-offset time zones in comments. Aug 25, 2016
backward Rename Asia/Rangoon to Asia/Yangon Sep 8, 2016
backzone Prefer UT +-NN notation for UT-offset time zones in comments. Aug 25, 2016
checklinks.awk Clarify licensing status Dec 8, 2015
checktab.awk checktab.awk: don't repeat missing comment errors Feb 13, 2016
date.1 Port 'date' better to POSIX 1003.1-2001 and later Jul 29, 2015
date.c port 'environ' decl to Solaris 10 Sep 5, 2016
difftime.c Avoid unnecessary casts in difftime Jul 27, 2015
etcetera Phase out alphanumeric abbrs from etcetera Aug 23, 2016
europe * europe (Europe/Istanbul): Remove obsolete comment. Sep 9, 2016
factory Spelling fixes Aug 24, 2016
iso3166.tab Regularize and resize column-4 comments Feb 24, 2016
leap-seconds.list Positive leap second on 2016-12-31 Jul 19, 2016
leapseconds.awk Update leap-seconds file expiration Feb 22, 2016
localtime.c Prefer +-NN notation for UT-offset time zones in comments. Aug 23, 2016
newctime.3 Add documentation for the core NetBSD-inspired functions. Aug 26, 2014
newstrftime.3 Clarify licensing status Dec 8, 2015
newtzset.3 Document TZ=<...> in newtzset.3 Aug 19, 2016
northamerica * NEWS, northamerica: Mention "day of two noons". Sep 21, 2016
pacificnew Switch back to ASCII for symbols. Jun 20, 2014
private.h Go back to lz tarball; improve documentation Aug 30, 2016
southamerica Prefer +-NN notation for UT-offset time zones in comments. Aug 23, 2016
strftime.c Simplify strftime to pacify GCC 6.2 Sep 12, 2016
systemv Simplify use of URLs in text files. Jun 16, 2014
time2posix.3 Document thread-safe functions in man pages. Aug 25, 2014
tz-art.htm Update HTML documentation Sep 9, 2016
tz-how-to.html Call the new tarball experimental Sep 6, 2016
tz-link.htm * tz-link.htm: Don’t say GitHub is "unofficial". Sep 21, 2016
tzfile.5 Fix bug with Casablanca in late 2037 Aug 5, 2016
tzfile.h Use bool for boolean. Aug 25, 2014
tzselect.8 Rename time.tab to zone1970.tab. Jul 31, 2014
tzselect.ksh tzselect: fix Julian-day TZ validation bug Mar 6, 2016
workman.sh Simplify use of URLs in text files. Jun 16, 2014
yearistype.sh Distinguish hyphen from minus from dashes. Jun 18, 2014
zdump.8 zdump -i: use colons and tabs in output Aug 22, 2016
zdump.c port 'environ' decl to Solaris 10 Sep 5, 2016
zic.8 Fix "-"s in zic man page with Bell Labs troff May 29, 2016
zic.c zic now uses chdir to avoid long file names Sep 6, 2016
zone.tab Revert Cyprus change for now Sep 12, 2016
zone1970.tab Revert Cyprus change for now Sep 12, 2016
zoneinfo2tdf.pl Rename fields of Link lines for clarity. Aug 17, 2014

README

README for the tz distribution

"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 Time Zone Database (often called tz or zoneinfo) contains code and
data that represent the history of local time for many representative
locations around the globe.  It is updated periodically to reflect
changes made by political bodies to time zone boundaries, UTC offsets,
and daylight-saving rules.

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

To acquire the distribution, run the following shell commands:

	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 -

Alternatively, the following shell commands acquire the same
distribution, with extra data useful for regression testing:

	wget --retr-symlinks 'ftp://ftp.iana.org/tz/tzdb-latest.tar.lz'
	lzip -dc tzdb-latest.tar.lz | 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

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 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;
fixes and enhancements are welcome.  Please see the file CONTRIBUTING
for details.

Thanks to these Time Zone 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.
Thanks in particular to Arthur David Olson, the project's founder and first
maintainer, to whom the time zone community owes the greatest debt of all.
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.

-----

This file is in the public domain, so clarified as of 2009-05-17 by
Arthur David Olson.  The other files in this distribution are either
public domain or BSD licensed; see the file LICENSE for details.