Sources for Time Zone and Daylight Saving Time Data
@(#)tz-link.htm 7.39
Please send corrections to this web page to the
time zone mailing list.
The tz
database
The public-domain time zone database 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 UTC offsets and daylight-saving rules.
This database (often called tz
or zoneinfo
)
is used by several implementations,
including
the GNU C Library used in
GNU/Linux,
FreeBSD,
NetBSD,
OpenBSD,
Cygwin,
DJGPP,
HP-UX,
IRIX,
Mac OS X,
OpenVMS,
Solaris,
Tru64, and
UnixWare.
Each location in the database represents a national region where all
clocks keeping local time have agreed since 1970.
Locations are identified by continent or ocean and then by the name of
the location, which is typically the largest city within the region.
For example, America/New_York
represents most of the US eastern time zone;
America/Indianapolis
represents most of Indiana, which
uses eastern time without daylight saving time (DST);
America/Detroit
represents most of Michigan, which uses
eastern time but with different DST rules in 1975;
and other entries represent smaller regions like Starke County,
Kentucky, which switched from central to eastern time in 1991.
To use the database, set the TZ
environment variable to
the location's full name, e.g., TZ="America/New_York"
.
In the tz
database's
FTP distribution,
the code is in the file tzcodeC.tar.gz
,
where C
is the code's version;
similarly, the data are in tzdataD.tar.gz
,
where D
is the data's version.
The following shell commands download
these files to a GNU/Linux or similar host; see the downloaded
README
file for what to do next.
wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
gzip -dc tzcode*.tar.gz | tar -xf -
gzip -dc tzdata*.tar.gz | tar -xf -
The code lets you compile the tz
source files into
machine-readable binary files, one for each location. It also lets
you read a tz
binary file and interpret time stamps for that
location.
The data are by no means authoritative. If you find errors, please
send changes to the time zone
mailing list. You can also subscribe to the
mailing list, or retrieve the archive of old
messages (in gzip compressed format).
The Web has several other sources for time zone and daylight saving time data.
Here are some recent links that may be of interest.
Web pages using recent versions of the tz
database
Other time zone database formats
Other tz
compilers
Other tz
binary file readers
Other tz
-based time zone conversion software
Other time zone databases
Maps
Time zone boundaries
Civil time concepts and history
National histories of legal time
- Australia
- The Community Relations Division of the New South Wales (NSW)
Attorney General's Department maintains a history of
daylight saving in NSW.
- Austria
- The Federal Office of Metrology and Surveying publishes a
table of daylight saving time in Austria (in German).
- Belgium
- The Royal Observatory of Belgium maintains a table of time in Belgium (in Dutch).
- Brazil
- The Time Service Department of the National Observatory
records Brazil's daylight saving time decrees (in
Portuguese).
- Canada
- The Institute for National Measurement Standards publishes current
and some older information about Time
Zones and Daylight Saving Time.
- Chile
- WebExhibits publishes a history of official time (in Spanish) originally
written by the Chilean Hydrographic and Oceanographic Service.
- Germany
- The National Institute for Science and Technology maintains the Realisation of
Legal Time in Germany.
- Israel
- The Interior Ministry periodically issues announcements (in Hebrew).
- Mexico
- The Investigation and Analysis Service of the Mexican Library of
Congress has published a history of Mexican local time (in Spanish).
- Netherlands
- Legal time in the Netherlands (in Dutch)
covers the history of local time in the Netherlands from ancient times.
- New Zealand
- The Department of Internal Affairs maintains a brief history about
daylight saving. The privately-maintained Time Changes in
New Zealand has more details.
- United Kingdom
- History of
legal time in Britain discusses in detail the country
with perhaps the best-documented history of clock adjustments.
The National Physical Laboratory also maintains an archive
of summer time dates.
Precision timekeeping
- The
Science of Timekeeping is a thorough introduction
to the theory and practice of precision timekeeping.
- NTP: The Network Time Protocol
discusses how to synchronize clocks of
Internet hosts.
- A
Few Facts Concerning GMT, UT, and the RGO
answers questions like "What is the difference between GMT and UTC?"
- Astronomical
Times explains more abstruse astronomical time scales like TT, TCG,
and TDB.
- The IAU's Standards Of Fundamental
Astronomy (SOFA) initiative publishes Fortran code for converting
among time scales like TAI, TDB, TT and UTC.
- Basics of
Space Flight - Reference Systems - Time Conventions
briefly explains interplanetary space flight timekeeping.
- Bulletins
maintained by the IERS EOP (PC) contains official publications of
the Earth Orientation Parameters Product Center of the
International Earth Rotation Service, the committee that decides
when leap seconds occur.
- The Leap
Second Discussion List covers McCarthy and Klepczynski's proposal
to discontinue leap seconds, published in GPS World 10, 11
(1999-11), 50–57 and discussed further in R. A. Nelson et al.,
The
leap second: its history and possible future,
Metrologia
38 (2001), 509–529.
The
Future of Leap Seconds catalogs information about this
contentious issue.
Time notation
-
A Summary of
the International Standard Date and Time Notation is a good
summary of ISO
8601:1988 - Data elements and interchange formats - Information interchange
- Representation of dates and times (which has been superseded by
ISO 8601:2000).
-
Section 3.3 of Internet RFC 2822
specifies the time notation used in email and HTTP headers.
-
Internet RFC
3339 specifies an ISO 8601 profile for use in new Internet
protocols.
-
The
Best of Dates, the Worst of Dates covers many problems encountered
by software developers when handling dates and time stamps.
-
Alphabetic time zone abbreviations should not be used as unique
identifiers for UTC offsets as they are ambiguous in practice. For
example, "EST" denotes 5 hours behind UTC in English-speaking North
America, but it denotes 10 or 11 hours ahead of UTC in Australia;
and French-speaking North Americans prefer "HNE" to "EST". For
compatibility with POSIX the
tz
database contains English abbreviations for all time
stamps but in many cases these are merely inventions of the database
maintainers.
Related indexes