Skip to content

Commit

Permalink
Update to tzdata version 2014h.
Browse files Browse the repository at this point in the history
  • Loading branch information
philr committed Sep 28, 2014
1 parent 3a47741 commit 0c2c44b
Show file tree
Hide file tree
Showing 24 changed files with 193 additions and 142 deletions.
61 changes: 61 additions & 0 deletions data/NEWS
@@ -1,5 +1,66 @@
News for the tz database

Release 2014h - 2014-09-25 18:59:03 -0700

Changes affecting past time stamps

America/Jamaica's 1974 spring-forward transition was Jan. 6, not Apr. 28.

Shanks says Asia/Novokuznetsk switched from LMT (not "NMT") on 1924-05-01,
not 1920-01-06. The old entry was based on a misinterpretation of Shanks.

Some more zones have been turned into links, when they differed
from existing zones only for older time stamps. As usual,
these changes affect UTC offsets in pre-1970 time stamps only.
Their old contents have been moved to the 'backzone' file.
The affected zones are: Africa/Blantyre, Africa/Bujumbura,
Africa/Gaborone, Africa/Harare, Africa/Kigali, Africa/Lubumbashi,
Africa/Lusaka, Africa/Maseru, and Africa/Mbabane.

Changes affecting code

zdump -V and -v now output gmtoff= values on all platforms,
not merely on platforms defining TM_GMTOFF.

The tz library's localtime and mktime functions now set tzname to a value
appropriate for the requested time stamp, and zdump now uses this
on platforms not defining TM_ZONE, fixing a 2014g regression.
(Thanks to Tim Parenti for reporting the problem.)

The tz library no longer sets tzname if localtime or mktime fails.

zdump -c no longer mishandles transitions near year boundaries.
(Thanks to Tim Parenti for reporting the problem.)

An access to uninitalized data has been fixed.
(Thanks to Jörg Richter for reporting the problem.)

When THREAD_SAFE is defined, the code ports to the C11 memory model.
A memory leak has been fixed if ALL_STATE and THREAD_SAFE are defined
and two threads race to initialize data used by gmtime-like functions.
(Thanks to Andy Heninger for reporting the problems.)

Changes affecting build procedure

'make check' now checks better for properly-sorted data.

Changes affecting documentation and commentary

zdump's gmtoff=N output is now documented, and its isdst=D output
is now documented to possibly output D values other than 0 or 1.

zdump -c's treatment of years is now documented to use the
Gregorian calendar and Universal Time without leap seconds,
and its behavior at cutoff boundaries is now documented better.
(Thanks to Arthur David Olson and Tim Parenti for reporting the problems.)

Programs are now documented to use the proleptic Gregorian calendar.
(Thanks to Alan Barrett for the suggestion.)

Fractional-second GMT offsets have been documented for civil time
in 19th-century Chennai, Jakarta, and New York.


Release 2014g - 2014-08-28 12:31:23 -0700

Changes affecting future time stamps
Expand Down
2 changes: 1 addition & 1 deletion data/SOURCE
@@ -1,2 +1,2 @@
The files in this directory were obtained from the IANA Time Zone Database
http://www.iana.org/time-zones, version 2014g.
http://www.iana.org/time-zones, version 2014h.
4 changes: 2 additions & 2 deletions data/Theory
Expand Up @@ -103,7 +103,7 @@ POSIX has the following properties and limitations.
signed time_t values stop working after 2038-01-19 03:14:07 UTC, so
new implementations these days typically use a signed 64-bit integer.
Unsigned 32-bit integers are used on one or two platforms,
and 36-bit integers are also used occasionally.
and 36-bit and 40-bit integers are also used occasionally.
Although earlier POSIX versions allowed time_t to be a
floating-point type, this was not supported by any practical
systems, and POSIX.1-2013 and the tz code both require time_t
Expand Down Expand Up @@ -318,7 +318,7 @@ Errors in the tz database arise from many sources:
way to specify Easter, these exceptional years are entered as
separate tz Rule lines, even though the legal rules did not change.

* The tz database models pre-standard time using the Gregorian
* The tz database models pre-standard time using the proleptic Gregorian
calendar and local mean time (LMT), but many people used other
calendars and other timescales. For example, the Roman Empire used
the Julian calendar, and had 12 varying-length daytime hours with a
Expand Down
57 changes: 19 additions & 38 deletions data/africa
Expand Up @@ -110,23 +110,13 @@ Zone Africa/Algiers 0:12:12 - LMT 1891 Mar 15 0:01
# See Africa/Lagos.

# Botswana
# From Paul Eggert (2013-02-21):
# Milne says they were regulated by the Cape Town Signal in 1899;
# assume they switched to 2:00 when Cape Town did.
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Gaborone 1:43:40 - LMT 1885
1:30 - SAST 1903 Mar
2:00 - CAT 1943 Sep 19 2:00
2:00 1:00 CAST 1944 Mar 19 2:00
2:00 - CAT
# See Africa/Maputo.

# Burkina Faso
# See Africa/Abidjan.

# Burundi
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Bujumbura 1:57:28 - LMT 1890
2:00 - CAT
# See Africa/Maputo.

# Cameroon
# See Africa/Lagos.
Expand Down Expand Up @@ -161,10 +151,7 @@ Zone Indian/Comoro 2:53:04 - LMT 1911 Jul # Moroni, Gran Comoro
3:00 - EAT

# Democratic Republic of the Congo
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Lubumbashi 1:49:52 - LMT 1897 Nov 9
2:00 - CAT
# The above is for the eastern part; see Africa/Lagos for the western part.
# See Africa/Lagos for the western part and Africa/Maputo for the eastern.

# Republic of the Congo
# See Africa/Lagos.
Expand Down Expand Up @@ -316,7 +303,7 @@ Rule Egypt 2007 only - Sep Thu>=1 24:00 0 -
# Egypt is to change back to Daylight system on May 15
# http://english.ahram.org.eg/NewsContent/1/64/100735/Egypt/Politics-/Egypts-government-to-reapply-daylight-saving-time-.aspx

# From Gunther Vermier (2015-05-13):
# From Gunther Vermier (2014-05-13):
# our Egypt office confirms that the change will be at 15 May "midnight" (24:00)

# From Imed Chihi (2014-06-04):
Expand Down Expand Up @@ -466,11 +453,7 @@ Zone Africa/Nairobi 2:27:16 - LMT 1928 Jul
3:00 - EAT

# Lesotho
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Maseru 1:50:00 - LMT 1903 Mar
2:00 - SAST 1943 Sep 19 2:00
2:00 1:00 SAST 1944 Mar 19 2:00
2:00 - SAST
# See Africa/Johannesburg.

# Liberia
# From Paul Eggert (2006-03-22):
Expand Down Expand Up @@ -552,9 +535,7 @@ Zone Indian/Antananarivo 3:10:04 - LMT 1911 Jul
3:00 - EAT

# Malawi
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Blantyre 2:20:00 - LMT 1903 Mar
2:00 - CAT
# See Africa/Maputo.

# Mali
# Mauritania
Expand Down Expand Up @@ -964,6 +945,13 @@ Zone Africa/El_Aaiun -0:52:48 - LMT 1934 Jan # El Aaiún
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Maputo 2:10:20 - LMT 1903 Mar
2:00 - CAT
Link Africa/Maputo Africa/Blantyre # Malawi
Link Africa/Maputo Africa/Bujumbura # Burundi
Link Africa/Maputo Africa/Gaborone # Botswana
Link Africa/Maputo Africa/Harare # Zimbabwe
Link Africa/Maputo Africa/Kigali # Rwanda
Link Africa/Maputo Africa/Lubumbashi # E Dem. Rep. of Congo
Link Africa/Maputo Africa/Lusaka # Zambia

# Namibia
# The 1994-04-03 transition is from Shanks & Pottenger.
Expand Down Expand Up @@ -1031,9 +1019,7 @@ Zone Indian/Reunion 3:41:52 - LMT 1911 Jun # Saint-Denis
# Tromelin - inhabited until at least 1958

# Rwanda
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Kigali 2:00:16 - LMT 1935 Jun
2:00 - CAT
# See Africa/Maputo.

# St Helena
# See Africa/Abidjan.
Expand Down Expand Up @@ -1077,6 +1063,9 @@ Rule SA 1943 1944 - Mar Sun>=15 2:00 0 -
Zone Africa/Johannesburg 1:52:00 - LMT 1892 Feb 8
1:30 - SAST 1903 Mar
2:00 SA SAST
Link Africa/Johannesburg Africa/Maseru # Lesotho
Link Africa/Johannesburg Africa/Mbabane # Swaziland
#
# Marion and Prince Edward Is
# scientific station since 1947
# no information
Expand Down Expand Up @@ -1104,9 +1093,7 @@ Zone Africa/Khartoum 2:10:08 - LMT 1931
Link Africa/Khartoum Africa/Juba

# Swaziland
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Mbabane 2:04:24 - LMT 1903 Mar
2:00 - SAST
# See Africa/Johannesburg.

# Tanzania
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Expand Down Expand Up @@ -1227,11 +1214,5 @@ Zone Africa/Kampala 2:09:40 - LMT 1928 Jul
3:00 - EAT

# Zambia
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Lusaka 1:53:08 - LMT 1903 Mar
2:00 - CAT

# Zimbabwe
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Africa/Harare 2:04:12 - LMT 1903 Mar
2:00 - CAT
# See Africa/Maputo.
4 changes: 4 additions & 0 deletions data/asia
Expand Up @@ -893,6 +893,10 @@ Zone Asia/Kolkata 5:53:28 - LMT 1880 # Kolkata

# Indonesia
#
# From Paul Eggert (2014-09-06):
# The 1876 Report of the Secretary of the [US] Navy, p 306 says that Batavia
# civil time was 7:07:12.5; round to even for Jakarta.
#
# From Gwillim Law (2001-05-28), overriding Shanks & Pottenger:
# http://www.sumatera-inc.com/go_to_invest/about_indonesia.asp#standtime
# says that Indonesia's time zones changed on 1988-01-01. Looking at some
Expand Down
75 changes: 62 additions & 13 deletions data/backzone
Expand Up @@ -57,10 +57,18 @@ Zone Africa/Banjul -1:06:36 - LMT 1912
-1:00 - WAT 1964
0:00 - GMT

# Malawi
Zone Africa/Blantyre 2:20:00 - LMT 1903 Mar
2:00 - CAT

# Republic of the Congo
Zone Africa/Brazzaville 1:01:08 - LMT 1912
1:00 - WAT

# Burundi
Zone Africa/Bujumbura 1:57:28 - LMT 1890
2:00 - CAT

# Guinea
Zone Africa/Conakry -0:54:52 - LMT 1912
0:00 - GMT 1934 Feb 26
Expand Down Expand Up @@ -92,11 +100,29 @@ Zone Africa/Freetown -0:53:00 - LMT 1882
-1:00 SL %s 1957
0:00 SL %s

# Botswana
# From Paul Eggert (2013-02-21):
# Milne says they were regulated by the Cape Town Signal in 1899;
# assume they switched to 2:00 when Cape Town did.
Zone Africa/Gaborone 1:43:40 - LMT 1885
1:30 - SAST 1903 Mar
2:00 - CAT 1943 Sep 19 2:00
2:00 1:00 CAST 1944 Mar 19 2:00
2:00 - CAT

# Zimbabwe
Zone Africa/Harare 2:04:12 - LMT 1903 Mar
2:00 - CAT

# South Sudan
Zone Africa/Juba 2:06:24 - LMT 1931
2:00 Sudan CA%sT 2000 Jan 15 12:00
3:00 - EAT

# Rwanda
Zone Africa/Kigali 2:00:16 - LMT 1935 Jun
2:00 - CAT

# Democratic Republic of the Congo (west)
Zone Africa/Kinshasa 1:01:12 - LMT 1897 Nov 9
1:00 - WAT
Expand All @@ -105,6 +131,10 @@ Zone Africa/Kinshasa 1:01:12 - LMT 1897 Nov 9
Zone Africa/Libreville 0:37:48 - LMT 1912
1:00 - WAT

# Togo
Zone Africa/Lome 0:04:52 - LMT 1893
0:00 - GMT

# Angola
#
# Shanks gives 1911-05-26 for the transition to WAT,
Expand All @@ -116,9 +146,13 @@ Zone Africa/Luanda 0:52:56 - LMT 1892
0:52:04 - AOT 1912 Jan 1 # Angola Time
1:00 - WAT

# Togo
Zone Africa/Lome 0:04:52 - LMT 1893
0:00 - GMT
# Democratic Republic of the Congo (east)
Zone Africa/Lubumbashi 1:49:52 - LMT 1897 Nov 9
2:00 - CAT

# Zambia
Zone Africa/Lusaka 1:53:08 - LMT 1903 Mar
2:00 - CAT

# Equatorial Guinea
#
Expand All @@ -131,6 +165,16 @@ Zone Africa/Malabo 0:35:08 - LMT 1912
0:00 - GMT 1963 Dec 15
1:00 - WAT

# Lesotho
Zone Africa/Maseru 1:50:00 - LMT 1903 Mar
2:00 - SAST 1943 Sep 19 2:00
2:00 1:00 SAST 1944 Mar 19 2:00
2:00 - SAST

# Swaziland
Zone Africa/Mbabane 2:04:24 - LMT 1903 Mar
2:00 - SAST

# Niger
Zone Africa/Niamey 0:08:28 - LMT 1912
-1:00 - WAT 1934 Feb 26
Expand Down Expand Up @@ -262,6 +306,11 @@ Zone Antarctica/McMurdo 0 - zzz 1956
Link Antarctica/McMurdo Antarctica/South_Pole

# India
#
# From Paul Eggert (2014-09-06):
# The 1876 Report of the Secretary of the [US] Navy, p 305 says that Madras
# civil time was 5:20:57.3.
#
# From Paul Eggert (2014-08-21):
# In tomorrow's The Hindu, Nitya Menon reports that India had two civil time
# zones starting in 1884, one in Bombay and one in Calcutta, and that railways
Expand All @@ -270,16 +319,6 @@ Link Antarctica/McMurdo Antarctica/South_Pole
# http://www.thehindu.com/news/cities/chennai/madras-375-when-madras-clocked-the-time/article6339393.ece
#Zone Asia/Chennai [not enough info to complete]

# China
# Changbai Time ("Long-white Time", Long-white = Heilongjiang area)
# Heilongjiang (except Mohe county), Jilin
Zone Asia/Harbin 8:26:44 - LMT 1928 # or Haerbin
8:30 - CHAT 1932 Mar # Changbai Time
8:00 - CST 1940
9:00 - CHAT 1966 May
8:30 - CHAT 1980 May
8:00 PRC C%sT

# China
# Long-shu Time (probably due to Long and Shu being two names of that area)
# Guangxi, Guizhou, Hainan, Ningxia, Sichuan, Shaanxi, and Yunnan;
Expand All @@ -291,6 +330,16 @@ Zone Asia/Chongqing 7:06:20 - LMT 1928 # or Chungking
8:00 PRC C%sT
Link Asia/Chongqing Asia/Chungking

# China
# Changbai Time ("Long-white Time", Long-white = Heilongjiang area)
# Heilongjiang (except Mohe county), Jilin
Zone Asia/Harbin 8:26:44 - LMT 1928 # or Haerbin
8:30 - CHAT 1932 Mar # Changbai Time
8:00 - CST 1940
9:00 - CHAT 1966 May
8:30 - CHAT 1980 May
8:00 PRC C%sT

# far west China
Zone Asia/Kashgar 5:03:56 - LMT 1928 # or Kashi or Kaxgar
5:30 - KAST 1940 # Kashgar Time
Expand Down
9 changes: 0 additions & 9 deletions data/checktab.awk
Expand Up @@ -17,18 +17,9 @@ BEGIN {
if (zone_table == "zone1970.tab") {
tztab["Africa/Addis_Ababa"] = 1
tztab["Africa/Asmara"] = 1
tztab["Africa/Blantyre"] = 1
tztab["Africa/Bujumbura"] = 1
tztab["Africa/Dar_es_Salaam"] = 1
tztab["Africa/Djibouti"] = 1
tztab["Africa/Gaborone"] = 1
tztab["Africa/Harare"] = 1
tztab["Africa/Kampala"] = 1
tztab["Africa/Kigali"] = 1
tztab["Africa/Lubumbashi"] = 1
tztab["Africa/Lusaka"] = 1
tztab["Africa/Maseru"] = 1
tztab["Africa/Mbabane"] = 1
tztab["Africa/Mogadishu"] = 1
tztab["America/Antigua"] = 1
tztab["America/Cayman"] = 1
Expand Down

0 comments on commit 0c2c44b

Please sign in to comment.