Merge
This commit is contained in:
commit
d5edf27b6a
@ -21,4 +21,4 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
tzdata2014i
|
||||
tzdata2014j
|
||||
|
@ -29,20 +29,19 @@
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2013-02-21):
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Another source occasionally used is Edward W. Whitman, World Time Differences,
|
||||
# Whitman Publishing Co, 2 Niagara Av, Ealing, London (undated), which
|
||||
@ -88,7 +87,6 @@
|
||||
# 3:00 CAST Central Africa Summer Time (no longer used)
|
||||
# 3:00 SAST South Africa Summer Time (no longer used)
|
||||
# 3:00 EAT East Africa Time
|
||||
# 4:00 EAST East Africa Summer Time (no longer used)
|
||||
|
||||
# Algeria
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
@ -169,9 +167,7 @@ Zone Africa/Ndjamena 1:00:12 - LMT 1912 # N'Djamena
|
||||
1:00 - WAT
|
||||
|
||||
# Comoros
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Indian/Comoro 2:53:04 - LMT 1911 Jul # Moroni, Gran Comoro
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Democratic Republic of the Congo
|
||||
# See Africa/Lagos for the western part and Africa/Maputo for the eastern.
|
||||
@ -195,9 +191,7 @@ Link Africa/Abidjan Africa/Sao_Tome # São Tomé and Príncipe
|
||||
Link Africa/Abidjan Atlantic/St_Helena # St Helena
|
||||
|
||||
# Djibouti
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Djibouti 2:52:36 - LMT 1911 Jul
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
###############################################################################
|
||||
|
||||
@ -410,27 +404,8 @@ Zone Africa/Cairo 2:05:09 - LMT 1900 Oct
|
||||
# See Africa/Lagos.
|
||||
|
||||
# Eritrea
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Asmara 2:35:32 - LMT 1870
|
||||
2:35:32 - AMT 1890 # Asmara Mean Time
|
||||
2:35:20 - ADMT 1936 May 5 # Adis Dera MT
|
||||
3:00 - EAT
|
||||
|
||||
# Ethiopia
|
||||
# From Paul Eggert (2014-07-31):
|
||||
# Like the Swahili of Kenya and Tanzania, many Ethiopians keep a
|
||||
# 12-hour clock starting at our 06:00, so their "8 o'clock" is our
|
||||
# 02:00 or 14:00. Keep this in mind when you ask the time in Amharic.
|
||||
#
|
||||
# Shanks & Pottenger write that Ethiopia had six narrowly-spaced time
|
||||
# zones between 1870 and 1890, that they merged to 38E50 (2:35:20) in
|
||||
# 1890, and that they switched to 3:00 on 1936-05-05. Perhaps 38E50
|
||||
# was for Adis Dera. Quite likely the Shanks data entries are wrong
|
||||
# anyway.
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Addis_Ababa 2:34:48 - LMT 1870
|
||||
2:35:20 - ADMT 1936 May 5 # Adis Dera MT
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Gabon
|
||||
# See Africa/Lagos.
|
||||
@ -474,6 +449,15 @@ Zone Africa/Nairobi 2:27:16 - LMT 1928 Jul
|
||||
2:30 - BEAT 1940
|
||||
2:45 - BEAUT 1960
|
||||
3:00 - EAT
|
||||
Link Africa/Nairobi Africa/Addis_Ababa # Ethiopia
|
||||
Link Africa/Nairobi Africa/Asmara # Eritrea
|
||||
Link Africa/Nairobi Africa/Dar_es_Salaam # Tanzania
|
||||
Link Africa/Nairobi Africa/Djibouti
|
||||
Link Africa/Nairobi Africa/Kampala # Uganda
|
||||
Link Africa/Nairobi Africa/Mogadishu # Somalia
|
||||
Link Africa/Nairobi Indian/Antananarivo # Madagascar
|
||||
Link Africa/Nairobi Indian/Comoro
|
||||
Link Africa/Nairobi Indian/Mayotte
|
||||
|
||||
# Lesotho
|
||||
# See Africa/Johannesburg.
|
||||
@ -551,11 +535,7 @@ Zone Africa/Tripoli 0:52:44 - LMT 1920
|
||||
2:00 - EET
|
||||
|
||||
# Madagascar
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Indian/Antananarivo 3:10:04 - LMT 1911 Jul
|
||||
3:00 - EAT 1954 Feb 27 23:00s
|
||||
3:00 1:00 EAST 1954 May 29 23:00s
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Malawi
|
||||
# See Africa/Maputo.
|
||||
@ -658,9 +638,7 @@ Zone Indian/Mauritius 3:50:00 - LMT 1907 # Port Louis
|
||||
# no information; probably like Indian/Mauritius
|
||||
|
||||
# Mayotte
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Indian/Mayotte 3:00:56 - LMT 1911 Jul # Mamoutzou
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Morocco
|
||||
# See the 'europe' file for Spanish Morocco (Africa/Ceuta).
|
||||
@ -1072,11 +1050,7 @@ Zone Indian/Mahe 3:41:48 - LMT 1906 Jun # Victoria
|
||||
# See Africa/Abidjan.
|
||||
|
||||
# Somalia
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Mogadishu 3:01:28 - LMT 1893 Nov
|
||||
3:00 - EAT 1931
|
||||
2:30 - BEAT 1957
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# South Africa
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
@ -1119,11 +1093,7 @@ Link Africa/Khartoum Africa/Juba
|
||||
# See Africa/Johannesburg.
|
||||
|
||||
# Tanzania
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Dar_es_Salaam 2:37:08 - LMT 1931
|
||||
3:00 - EAT 1948
|
||||
2:45 - BEAUT 1961
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Togo
|
||||
# See Africa/Abidjan.
|
||||
@ -1229,12 +1199,7 @@ Zone Africa/Tunis 0:40:44 - LMT 1881 May 12
|
||||
1:00 Tunisia CE%sT
|
||||
|
||||
# Uganda
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Kampala 2:09:40 - LMT 1928 Jul
|
||||
3:00 - EAT 1930
|
||||
2:30 - BEAT 1948
|
||||
2:45 - BEAUT 1957
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Zambia
|
||||
# Zimbabwe
|
||||
|
@ -29,20 +29,19 @@
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2013-08-11):
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Another source occasionally used is Edward W. Whitman, World Time Differences,
|
||||
# Whitman Publishing Co, 2 Niagara Av, Ealing, London (undated), which
|
||||
@ -1686,44 +1685,70 @@ Zone Asia/Bishkek 4:58:24 - LMT 1924 May 2
|
||||
# Korea (North and South)
|
||||
|
||||
# From Annie I. Bang (2006-07-10):
|
||||
# http://www.koreaherald.co.kr/SITE/data/html_dir/2006/07/10/200607100012.asp
|
||||
# The Ministry of Commerce, Industry and Energy has already
|
||||
# commissioned a research project [to reintroduce DST] and has said
|
||||
# the system may begin as early as 2008.... Korea ran a daylight
|
||||
# saving program from 1949-61 but stopped it during the 1950-53 Korean War.
|
||||
# http://www.koreaherald.com/view.php?ud=200607100012
|
||||
# Korea ran a daylight saving program from 1949-61 but stopped it
|
||||
# during the 1950-53 Korean War. The system was temporarily enforced
|
||||
# between 1987 and 1988 ...
|
||||
|
||||
# From Sanghyuk Jung (2014-10-29):
|
||||
# http://mm.icann.org/pipermail/tz/2014-October/021830.html
|
||||
# According to the Korean Wikipedia
|
||||
# http://ko.wikipedia.org/wiki/한국_표준시
|
||||
# [oldid=12896437 2014-09-04 08:03 UTC]
|
||||
# DST in Republic of Korea was as follows.... And I checked old
|
||||
# newspapers in Korean, all articles correspond with data in Wikipedia.
|
||||
# For example, the article in 1948 (Korean Language) proved that DST
|
||||
# started at June 1 in that year. For another example, the article in
|
||||
# 1988 said that DST started at 2:00 AM in that year.
|
||||
|
||||
# From Shanks & Pottenger:
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
Rule ROK 1960 only - May 15 0:00 1:00 D
|
||||
Rule ROK 1960 only - Sep 13 0:00 0 S
|
||||
Rule ROK 1987 1988 - May Sun>=8 0:00 1:00 D
|
||||
Rule ROK 1987 1988 - Oct Sun>=8 0:00 0 S
|
||||
Rule ROK 1948 only - Jun 1 0:00 1:00 D
|
||||
Rule ROK 1948 only - Sep 13 0:00 0 S
|
||||
Rule ROK 1949 only - Apr 3 0:00 1:00 D
|
||||
Rule ROK 1949 1951 - Sep Sun>=8 0:00 0 S
|
||||
Rule ROK 1950 only - Apr 1 0:00 1:00 D
|
||||
Rule ROK 1951 only - May 6 0:00 1:00 D
|
||||
Rule ROK 1955 only - May 5 0:00 1:00 D
|
||||
Rule ROK 1955 only - Sep 9 0:00 0 S
|
||||
Rule ROK 1956 only - May 20 0:00 1:00 D
|
||||
Rule ROK 1956 only - Sep 30 0:00 0 S
|
||||
Rule ROK 1957 1960 - May Sun>=1 0:00 1:00 D
|
||||
Rule ROK 1957 1960 - Sep Sun>=18 0:00 0 S
|
||||
Rule ROK 1987 1988 - May Sun>=8 2:00 1:00 D
|
||||
Rule ROK 1987 1988 - Oct Sun>=8 3:00 0 S
|
||||
|
||||
# From Paul Eggert (2014-07-01):
|
||||
# The following entries are from Shanks & Pottenger, except that I
|
||||
# guessed that time zone abbreviations through 1945 followed the same
|
||||
# From Paul Eggert (2014-10-30):
|
||||
# The Korean Wikipedia entry gives the following sources for UT offsets:
|
||||
#
|
||||
# 1908: Official Journal Article No. 3994 (Edict No. 5)
|
||||
# 1912: Governor-General of Korea Official Gazette Issue No. 367
|
||||
# (Announcement No. 338)
|
||||
# 1954: Presidential Decree No. 876 (1954-03-17)
|
||||
# 1961: Law No. 676 (1961-08-07)
|
||||
# 1987: Law No. 3919 (1986-12-31)
|
||||
#
|
||||
# The Wikipedia entry also has confusing information about a change
|
||||
# to UT+9 in April 1910, but then what would be the point of the later change
|
||||
# to UT+9 on 1912-01-01? Omit the 1910 change for now.
|
||||
#
|
||||
# I guessed that time zone abbreviations through 1945 followed the same
|
||||
# rules as discussed under Taiwan, with nominal switches from JST to KST
|
||||
# when the respective cities were taken over by the Allies after WWII.
|
||||
#
|
||||
# For Pyongyang we have no information; guess no changes since World War II.
|
||||
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Asia/Seoul 8:27:52 - LMT 1890
|
||||
8:30 - KST 1904 Dec
|
||||
9:00 - JCST 1928
|
||||
8:30 - KST 1932
|
||||
Zone Asia/Seoul 8:27:52 - LMT 1908 Apr 1
|
||||
8:30 - KST 1912 Jan 1
|
||||
9:00 - JCST 1937 Oct 1
|
||||
9:00 - JST 1945 Sep 8
|
||||
9:00 - KST 1954 Mar 21
|
||||
8:00 ROK K%sT 1961 Aug 10
|
||||
8:30 - KST 1968 Oct
|
||||
8:30 ROK K%sT 1961 Aug 10
|
||||
9:00 ROK K%sT
|
||||
Zone Asia/Pyongyang 8:23:00 - LMT 1890
|
||||
8:30 - KST 1904 Dec
|
||||
9:00 - JCST 1928
|
||||
8:30 - KST 1932
|
||||
Zone Asia/Pyongyang 8:23:00 - LMT 1908 Apr 1
|
||||
8:30 - KST 1912 Jan 1
|
||||
9:00 - JCST 1937 Oct 1
|
||||
9:00 - JST 1945 Aug 24
|
||||
9:00 - KST 1954 Mar 21
|
||||
8:00 - KST 1961 Aug 10
|
||||
9:00 - KST
|
||||
|
||||
###############################################################################
|
||||
|
@ -820,19 +820,19 @@ Zone Pacific/Wallis 12:15:20 - LMT 1901
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2013-02-21):
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Another source occasionally used is Edward W. Whitman, World Time Differences,
|
||||
# Whitman Publishing Co, 2 Niagara Av, Ealing, London (undated), which
|
||||
|
@ -29,16 +29,19 @@
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2014-05-31):
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# A reliable and entertaining source about time zones is
|
||||
# Derek Howse, Greenwich time and longitude, Philip Wilson Publishers (1997).
|
||||
@ -310,6 +313,14 @@
|
||||
# "Timeball on the ballast office is down. Dunsink time."
|
||||
# -- James Joyce, Ulysses
|
||||
|
||||
# "Countess Markievicz ... claimed that the [1916] abolition of Dublin Mean Time
|
||||
# was among various actions undertaken by the 'English' government that
|
||||
# would 'put the whole country into the SF (Sinn Féin) camp'. She claimed
|
||||
# Irish 'public feeling (was) outraged by forcing of English time on us'."
|
||||
# -- Parsons M. Dublin lost its time zone - and 25 minutes - after 1916 Rising.
|
||||
# Irish Times 2014-10-27.
|
||||
# http://www.irishtimes.com/news/politics/dublin-lost-its-time-zone-and-25-minutes-after-1916-rising-1.1977411
|
||||
|
||||
# From Joseph S. Myers (2005-01-26):
|
||||
# Irish laws are available online at <http://www.irishstatutebook.ie>.
|
||||
# These include various relating to legal time, for example:
|
||||
@ -617,6 +628,7 @@ Rule Russia 1992 only - Sep lastSat 23:00 0 -
|
||||
Rule Russia 1993 2010 - Mar lastSun 2:00s 1:00 S
|
||||
Rule Russia 1993 1995 - Sep lastSun 2:00s 0 -
|
||||
Rule Russia 1996 2010 - Oct lastSun 2:00s 0 -
|
||||
# As described below, Russia's 2014 change affects Zone data, not Rule data.
|
||||
|
||||
# From Alexander Krivenyshev (2011-06-14):
|
||||
# According to Kremlin press service, Russian President Dmitry Medvedev
|
||||
|
@ -33,8 +33,8 @@
|
||||
# The NTP Timescale and Leap Seconds
|
||||
# http://www.eecis.udel.edu/~mills/leap.html
|
||||
|
||||
# The International Earth Rotation Service periodically uses leap seconds
|
||||
# to keep UTC to within 0.9 s of UT1
|
||||
# The International Earth Rotation and Reference Systems Service
|
||||
# periodically uses leap seconds to keep UTC to within 0.9 s of UT1
|
||||
# (which measures the true angular orientation of the earth in space); see
|
||||
# Terry J Quinn, The BIPM and the accurate measure of time,
|
||||
# Proc IEEE 79, 7 (July 1991), 894-905 <http://dx.doi.org/10.1109/5.84965>.
|
||||
|
@ -1014,19 +1014,19 @@ Zone America/Menominee -5:50:27 - LMT 1885 Sep 18 12:00
|
||||
################################################################################
|
||||
|
||||
|
||||
# From Paul Eggert (2006-03-22):
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Other sources occasionally used include:
|
||||
#
|
||||
@ -3154,13 +3154,17 @@ Zone America/Miquelon -3:44:40 - LMT 1911 May 15 # St Pierre
|
||||
# From Paul Eggert (2014-08-19):
|
||||
# The 2014-08-13 Cabinet meeting decided to stay on UTC-4 year-round. See:
|
||||
# http://tcweeklynews.com/daylight-savings-time-to-be-maintained-p5353-127.htm
|
||||
# Model this as a switch from EST/EDT to AST on 2014-11-02 at 02:00.
|
||||
# Model this as a switch from EST/EDT to AST ...
|
||||
# From Chris Walton (2014-11-04):
|
||||
# ... the TCI government appears to have delayed the switch to
|
||||
# "permanent daylight saving time" by one year....
|
||||
# http://tcweeklynews.com/time-change-to-go-ahead-this-november-p5437-127.htm
|
||||
#
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone America/Grand_Turk -4:44:32 - LMT 1890
|
||||
-5:07:11 - KMT 1912 Feb # Kingston Mean Time
|
||||
-5:00 - EST 1979
|
||||
-5:00 US E%sT 2014 Nov 2 2:00
|
||||
-5:00 US E%sT 2015 Nov Sun>=1 2:00
|
||||
-4:00 - AST
|
||||
|
||||
# British Virgin Is
|
||||
|
@ -29,23 +29,23 @@
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2006-03-22):
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
#
|
||||
# For data circa 1899, a common source is:
|
||||
# Milne J. Civil time. Geogr J. 1899 Feb;13(2):173-94.
|
||||
# http://www.jstor.org/stable/1774359
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# For data circa 1899, a common source is:
|
||||
# Milne J. Civil time. Geogr J. 1899 Feb;13(2):173-94.
|
||||
# http://www.jstor.org/stable/1774359
|
||||
#
|
||||
# Earlier editions of these tables used the North American style (e.g. ARST and
|
||||
# ARDT for Argentine Standard and Daylight Time), but the following quote
|
||||
|
@ -95,7 +95,17 @@ class TzdbZoneRulesProvider {
|
||||
obj = zones.get(zoneId);
|
||||
}
|
||||
if (obj == null) {
|
||||
throw new ZoneRulesException("Unknown time-zone ID: " + zoneId0);
|
||||
// Timezone link can be located in 'backward' file and it
|
||||
// can refer to another link, so we need to check for
|
||||
// link one more time, before throwing an exception
|
||||
String zoneIdBack = zoneId;
|
||||
if (links.containsKey(zoneId)) {
|
||||
zoneId = links.get(zoneId);
|
||||
obj = zones.get(zoneId);
|
||||
}
|
||||
if (obj == null) {
|
||||
throw new ZoneRulesException("Unknown time-zone ID: " + zoneIdBack);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (obj instanceof ZoneRules) {
|
||||
|
@ -719,15 +719,15 @@ public final class Class<T> implements java.io.Serializable,
|
||||
|
||||
|
||||
/**
|
||||
* Returns the {@code Class} representing the superclass of the entity
|
||||
* (class, interface, primitive type or void) represented by this
|
||||
* {@code Class}. If this {@code Class} represents either the
|
||||
* Returns the {@code Class} representing the direct superclass of the
|
||||
* entity (class, interface, primitive type or void) represented by
|
||||
* this {@code Class}. If this {@code Class} represents either the
|
||||
* {@code Object} class, an interface, a primitive type, or void, then
|
||||
* null is returned. If this object represents an array class then the
|
||||
* {@code Class} object representing the {@code Object} class is
|
||||
* returned.
|
||||
*
|
||||
* @return the superclass of the class represented by this object.
|
||||
* @return the direct superclass of the class represented by this object
|
||||
*/
|
||||
public native Class<? super T> getSuperclass();
|
||||
|
||||
@ -758,7 +758,7 @@ public final class Class<T> implements java.io.Serializable,
|
||||
* @throws java.lang.reflect.MalformedParameterizedTypeException if the
|
||||
* generic superclass refers to a parameterized type that cannot be
|
||||
* instantiated for any reason
|
||||
* @return the superclass of the class represented by this object
|
||||
* @return the direct superclass of the class represented by this object
|
||||
* @since 1.5
|
||||
*/
|
||||
public Type getGenericSuperclass() {
|
||||
@ -798,15 +798,15 @@ public final class Class<T> implements java.io.Serializable,
|
||||
|
||||
|
||||
/**
|
||||
* Determines the interfaces implemented by the class or interface
|
||||
* Returns the interfaces directly implemented by the class or interface
|
||||
* represented by this object.
|
||||
*
|
||||
* <p> If this object represents a class, the return value is an array
|
||||
* containing objects representing all interfaces implemented by the
|
||||
* class. The order of the interface objects in the array corresponds to
|
||||
* the order of the interface names in the {@code implements} clause
|
||||
* of the declaration of the class represented by this object. For
|
||||
* example, given the declaration:
|
||||
* <p>If this object represents a class, the return value is an array
|
||||
* containing objects representing all interfaces directly implemented by
|
||||
* the class. The order of the interface objects in the array corresponds
|
||||
* to the order of the interface names in the {@code implements} clause of
|
||||
* the declaration of the class represented by this object. For example,
|
||||
* given the declaration:
|
||||
* <blockquote>
|
||||
* {@code class Shimmer implements FloorWax, DessertTopping { ... }}
|
||||
* </blockquote>
|
||||
@ -823,23 +823,23 @@ public final class Class<T> implements java.io.Serializable,
|
||||
* is the {@code Class} object that represents interface
|
||||
* {@code DessertTopping}.
|
||||
*
|
||||
* <p> If this object represents an interface, the array contains objects
|
||||
* representing all interfaces extended by the interface. The order of the
|
||||
* interface objects in the array corresponds to the order of the interface
|
||||
* names in the {@code extends} clause of the declaration of the
|
||||
* interface represented by this object.
|
||||
* <p>If this object represents an interface, the array contains objects
|
||||
* representing all interfaces directly extended by the interface. The
|
||||
* order of the interface objects in the array corresponds to the order of
|
||||
* the interface names in the {@code extends} clause of the declaration of
|
||||
* the interface represented by this object.
|
||||
*
|
||||
* <p> If this object represents a class or interface that implements no
|
||||
* <p>If this object represents a class or interface that implements no
|
||||
* interfaces, the method returns an array of length 0.
|
||||
*
|
||||
* <p> If this object represents a primitive type or void, the method
|
||||
* <p>If this object represents a primitive type or void, the method
|
||||
* returns an array of length 0.
|
||||
*
|
||||
* <p> If this {@code Class} object represents an array type, the
|
||||
* <p>If this {@code Class} object represents an array type, the
|
||||
* interfaces {@code Cloneable} and {@code java.io.Serializable} are
|
||||
* returned in that order.
|
||||
*
|
||||
* @return an array of interfaces implemented by this class.
|
||||
* @return an array of interfaces directly implemented by this class
|
||||
*/
|
||||
public Class<?>[] getInterfaces() {
|
||||
ReflectionData<T> rd = reflectionData();
|
||||
@ -873,29 +873,28 @@ public final class Class<T> implements java.io.Serializable,
|
||||
* for the semantics of the creation process for parameterized
|
||||
* types.
|
||||
*
|
||||
* <p> If this object represents a class, the return value is an
|
||||
* array containing objects representing all interfaces
|
||||
* implemented by the class. The order of the interface objects in
|
||||
* the array corresponds to the order of the interface names in
|
||||
* the {@code implements} clause of the declaration of the class
|
||||
* represented by this object. In the case of an array class, the
|
||||
* interfaces {@code Cloneable} and {@code Serializable} are
|
||||
* <p>If this object represents a class, the return value is an array
|
||||
* containing objects representing all interfaces directly implemented by
|
||||
* the class. The order of the interface objects in the array corresponds
|
||||
* to the order of the interface names in the {@code implements} clause of
|
||||
* the declaration of the class represented by this object.
|
||||
*
|
||||
* <p>If this object represents an interface, the array contains objects
|
||||
* representing all interfaces directly extended by the interface. The
|
||||
* order of the interface objects in the array corresponds to the order of
|
||||
* the interface names in the {@code extends} clause of the declaration of
|
||||
* the interface represented by this object.
|
||||
*
|
||||
* <p>If this object represents a class or interface that implements no
|
||||
* interfaces, the method returns an array of length 0.
|
||||
*
|
||||
* <p>If this object represents a primitive type or void, the method
|
||||
* returns an array of length 0.
|
||||
*
|
||||
* <p>If this {@code Class} object represents an array type, the
|
||||
* interfaces {@code Cloneable} and {@code java.io.Serializable} are
|
||||
* returned in that order.
|
||||
*
|
||||
* <p>If this object represents an interface, the array contains
|
||||
* objects representing all interfaces directly extended by the
|
||||
* interface. The order of the interface objects in the array
|
||||
* corresponds to the order of the interface names in the
|
||||
* {@code extends} clause of the declaration of the interface
|
||||
* represented by this object.
|
||||
*
|
||||
* <p>If this object represents a class or interface that
|
||||
* implements no interfaces, the method returns an array of length
|
||||
* 0.
|
||||
*
|
||||
* <p>If this object represents a primitive type or void, the
|
||||
* method returns an array of length 0.
|
||||
*
|
||||
* @throws java.lang.reflect.GenericSignatureFormatError
|
||||
* if the generic class signature does not conform to the format
|
||||
* specified in
|
||||
@ -905,7 +904,7 @@ public final class Class<T> implements java.io.Serializable,
|
||||
* @throws java.lang.reflect.MalformedParameterizedTypeException
|
||||
* if any of the generic superinterfaces refer to a parameterized
|
||||
* type that cannot be instantiated for any reason
|
||||
* @return an array of interfaces implemented by this class
|
||||
* @return an array of interfaces directly implemented by this class
|
||||
* @since 1.5
|
||||
*/
|
||||
public Type[] getGenericInterfaces() {
|
||||
@ -1533,7 +1532,8 @@ public final class Class<T> implements java.io.Serializable,
|
||||
* 0.
|
||||
*
|
||||
* <p> If this {@code Class} object represents a class, then this method
|
||||
* returns the public fields of the class and of all its superclasses.
|
||||
* returns the public fields of the class and of all its superclasses and
|
||||
* superinterfaces.
|
||||
*
|
||||
* <p> If this {@code Class} object represents an interface, then this
|
||||
* method returns the fields of the interface and of all its
|
||||
|
@ -453,7 +453,7 @@ public class Object {
|
||||
"nanosecond timeout value out of range");
|
||||
}
|
||||
|
||||
if (nanos >= 500000 || (nanos != 0 && timeout == 0)) {
|
||||
if (nanos > 0) {
|
||||
timeout++;
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ public abstract
|
||||
class Authenticator {
|
||||
|
||||
// The system-wide authenticator object. See setDefault().
|
||||
private static Authenticator theAuthenticator;
|
||||
private static volatile Authenticator theAuthenticator;
|
||||
|
||||
private String requestingHost;
|
||||
private InetAddress requestingSite;
|
||||
|
@ -771,6 +771,7 @@ class DatagramSocket implements java.io.Closeable {
|
||||
} // end of while
|
||||
}
|
||||
}
|
||||
DatagramPacket tmp = null;
|
||||
if ((connectState == ST_CONNECTED_NO_IMPL) || explicitFilter) {
|
||||
// We have to do the filtering the old fashioned way since
|
||||
// the native impl doesn't support connect or the connect
|
||||
@ -795,11 +796,13 @@ class DatagramSocket implements java.io.Closeable {
|
||||
if ((!connectedAddress.equals(peekAddress)) ||
|
||||
(connectedPort != peekPort)) {
|
||||
// throw the packet away and silently continue
|
||||
DatagramPacket tmp = new DatagramPacket(
|
||||
tmp = new DatagramPacket(
|
||||
new byte[1024], 1024);
|
||||
getImpl().receive(tmp);
|
||||
if (explicitFilter) {
|
||||
bytesLeftToFilter -= tmp.getLength();
|
||||
if (checkFiltering(tmp)) {
|
||||
stop = true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
stop = true;
|
||||
@ -809,18 +812,22 @@ class DatagramSocket implements java.io.Closeable {
|
||||
// If the security check succeeds, or the datagram is
|
||||
// connected then receive the packet
|
||||
getImpl().receive(p);
|
||||
if (explicitFilter) {
|
||||
bytesLeftToFilter -= p.getLength();
|
||||
if (bytesLeftToFilter <= 0) {
|
||||
explicitFilter = false;
|
||||
} else {
|
||||
// break out of filter, if there is no more data queued
|
||||
explicitFilter = getImpl().dataAvailable() > 0;
|
||||
}
|
||||
if (explicitFilter && tmp == null) {
|
||||
// packet was not filtered, account for it here
|
||||
checkFiltering(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean checkFiltering(DatagramPacket p) throws SocketException {
|
||||
bytesLeftToFilter -= p.getLength();
|
||||
if (bytesLeftToFilter <= 0 || getImpl().dataAvailable() <= 0) {
|
||||
explicitFilter = false;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the local address to which the socket is bound.
|
||||
*
|
||||
|
@ -2624,10 +2624,11 @@ public final class Formatter implements Closeable, Flushable {
|
||||
private boolean dt = false;
|
||||
private char c;
|
||||
|
||||
private int index(String s) {
|
||||
if (s != null) {
|
||||
private int index(String s, int start, int end) {
|
||||
if (start >= 0) {
|
||||
try {
|
||||
index = Integer.parseInt(s.substring(0, s.length() - 1));
|
||||
// skip the trailing '$'
|
||||
index = Integer.parseInt(s, start, end - 1, 10);
|
||||
} catch (NumberFormatException x) {
|
||||
assert(false);
|
||||
}
|
||||
@ -2648,11 +2649,11 @@ public final class Formatter implements Closeable, Flushable {
|
||||
return f;
|
||||
}
|
||||
|
||||
private int width(String s) {
|
||||
private int width(String s, int start, int end) {
|
||||
width = -1;
|
||||
if (s != null) {
|
||||
if (start >= 0) {
|
||||
try {
|
||||
width = Integer.parseInt(s);
|
||||
width = Integer.parseInt(s, start, end, 10);
|
||||
if (width < 0)
|
||||
throw new IllegalFormatWidthException(width);
|
||||
} catch (NumberFormatException x) {
|
||||
@ -2662,12 +2663,12 @@ public final class Formatter implements Closeable, Flushable {
|
||||
return width;
|
||||
}
|
||||
|
||||
private int precision(String s) {
|
||||
private int precision(String s, int start, int end) {
|
||||
precision = -1;
|
||||
if (s != null) {
|
||||
if (start >= 0) {
|
||||
try {
|
||||
// remove the '.'
|
||||
precision = Integer.parseInt(s.substring(1));
|
||||
// skip the leading '.'
|
||||
precision = Integer.parseInt(s, start + 1, end, 10);
|
||||
if (precision < 0)
|
||||
throw new IllegalFormatPrecisionException(precision);
|
||||
} catch (NumberFormatException x) {
|
||||
@ -2695,23 +2696,19 @@ public final class Formatter implements Closeable, Flushable {
|
||||
}
|
||||
|
||||
FormatSpecifier(String s, Matcher m) {
|
||||
int idx = 1;
|
||||
index(s, m.start(1), m.end(1));
|
||||
flags(s, m.start(2), m.end(2));
|
||||
width(s, m.start(3), m.end(3));
|
||||
precision(s, m.start(4), m.end(4));
|
||||
|
||||
index(m.group(idx++));
|
||||
flags(s, m.start(idx), m.end(idx++));
|
||||
width(m.group(idx++));
|
||||
precision(m.group(idx++));
|
||||
|
||||
int tTStart = m.start(idx);
|
||||
int tTEnd = m.end(idx++);
|
||||
if (tTStart != -1 && tTEnd != -1) {
|
||||
int tTStart = m.start(5);
|
||||
if (tTStart >= 0) {
|
||||
dt = true;
|
||||
if (tTStart == tTEnd - 1 && s.charAt(tTStart) == 'T') {
|
||||
if (s.charAt(tTStart) == 'T') {
|
||||
f.add(Flags.UPPERCASE);
|
||||
}
|
||||
}
|
||||
|
||||
conversion(s.charAt(m.start(idx)));
|
||||
conversion(s.charAt(m.start(6)));
|
||||
|
||||
if (dt)
|
||||
checkDateTime();
|
||||
|
@ -28,7 +28,7 @@ package java.util.jar;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.Collection;
|
||||
@ -47,6 +47,9 @@ import sun.misc.ASCIICaseInsensitiveComparator;
|
||||
* <a href="../../../../technotes/guides/jar/jar.html">JAR File Specification</a>
|
||||
* for more information about valid attribute names and values.
|
||||
*
|
||||
* <p>This map and its views have a predictable iteration order, namely the
|
||||
* order that keys were inserted into the map, as with {@link LinkedHashMap}.
|
||||
*
|
||||
* @author David Connelly
|
||||
* @see Manifest
|
||||
* @since 1.2
|
||||
@ -71,7 +74,7 @@ public class Attributes implements Map<Object,Object>, Cloneable {
|
||||
* @param size the initial number of attributes
|
||||
*/
|
||||
public Attributes(int size) {
|
||||
map = new HashMap<>(size);
|
||||
map = new LinkedHashMap<>(size);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -81,7 +84,7 @@ public class Attributes implements Map<Object,Object>, Cloneable {
|
||||
* @param attr the specified Attributes
|
||||
*/
|
||||
public Attributes(Attributes attr) {
|
||||
map = new HashMap<>(attr);
|
||||
map = new LinkedHashMap<>(attr);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -88,6 +88,8 @@ public class CipherInputStream extends FilterInputStream {
|
||||
private int ofinish = 0;
|
||||
// stream status
|
||||
private boolean closed = false;
|
||||
// The stream has been read from. False if the stream has never been read.
|
||||
private boolean read = false;
|
||||
|
||||
/**
|
||||
* private convenience function.
|
||||
@ -103,6 +105,7 @@ public class CipherInputStream extends FilterInputStream {
|
||||
private int getMoreData() throws IOException {
|
||||
if (done) return -1;
|
||||
int readin = input.read(ibuffer);
|
||||
read = true;
|
||||
if (readin == -1) {
|
||||
done = true;
|
||||
try {
|
||||
@ -306,7 +309,11 @@ public class CipherInputStream extends FilterInputStream {
|
||||
}
|
||||
}
|
||||
catch (BadPaddingException | IllegalBlockSizeException ex) {
|
||||
throw new IOException(ex);
|
||||
/* If no data has been read from the stream to be en/decrypted,
|
||||
we supress any exceptions, and close quietly. */
|
||||
if (read) {
|
||||
throw new IOException(ex);
|
||||
}
|
||||
}
|
||||
ostart = 0;
|
||||
ofinish = 0;
|
||||
|
@ -657,9 +657,10 @@ public class HttpClient extends NetworkClient {
|
||||
cachedHttpClient = false;
|
||||
if (!failedOnce && requests != null) {
|
||||
failedOnce = true;
|
||||
if (getRequestMethod().equals("CONNECT") ||
|
||||
(httpuc.getRequestMethod().equals("POST") &&
|
||||
(!retryPostProp || streaming))) {
|
||||
if (getRequestMethod().equals("CONNECT")
|
||||
|| streaming
|
||||
|| (httpuc.getRequestMethod().equals("POST")
|
||||
&& !retryPostProp)) {
|
||||
// do not retry the request
|
||||
} else {
|
||||
// try once more
|
||||
@ -769,9 +770,10 @@ public class HttpClient extends NetworkClient {
|
||||
} else if (nread != 8) {
|
||||
if (!failedOnce && requests != null) {
|
||||
failedOnce = true;
|
||||
if (getRequestMethod().equals("CONNECT") ||
|
||||
(httpuc.getRequestMethod().equals("POST") &&
|
||||
(!retryPostProp || streaming))) {
|
||||
if (getRequestMethod().equals("CONNECT")
|
||||
|| streaming
|
||||
|| (httpuc.getRequestMethod().equals("POST")
|
||||
&& !retryPostProp)) {
|
||||
// do not retry the request
|
||||
} else {
|
||||
closeServer();
|
||||
|
@ -752,7 +752,7 @@ class DatagramChannelImpl
|
||||
}
|
||||
do {
|
||||
tmpBuf.clear();
|
||||
} while (read(tmpBuf) > 0);
|
||||
} while (receive(tmpBuf) != null);
|
||||
} finally {
|
||||
if (blocking) {
|
||||
configureBlocking(true);
|
||||
|
@ -42,8 +42,11 @@ public class ClassRepository extends GenericDeclRepository<ClassSignature> {
|
||||
|
||||
public static final ClassRepository NONE = ClassRepository.make("Ljava/lang/Object;", null);
|
||||
|
||||
private Type superclass; // caches the generic superclass info
|
||||
private Type[] superInterfaces; // caches the generic superinterface info
|
||||
/** The generic superclass info. Lazily initialized. */
|
||||
private volatile Type superclass;
|
||||
|
||||
/** The generic superinterface info. Lazily initialized. */
|
||||
private volatile Type[] superInterfaces;
|
||||
|
||||
// private, to enforce use of static factory
|
||||
private ClassRepository(String rawSig, GenericsFactory f) {
|
||||
@ -79,31 +82,34 @@ public class ClassRepository extends GenericDeclRepository<ClassSignature> {
|
||||
* with which the repository was created.
|
||||
*/
|
||||
|
||||
public Type getSuperclass(){
|
||||
public Type getSuperclass() {
|
||||
Type superclass = this.superclass;
|
||||
if (superclass == null) { // lazily initialize superclass
|
||||
Reifier r = getReifier(); // obtain visitor
|
||||
// Extract superclass subtree from AST and reify
|
||||
getTree().getSuperclass().accept(r);
|
||||
// extract result from visitor and cache it
|
||||
superclass = r.getResult();
|
||||
}
|
||||
this.superclass = superclass;
|
||||
}
|
||||
return superclass; // return cached result
|
||||
}
|
||||
|
||||
public Type[] getSuperInterfaces(){
|
||||
public Type[] getSuperInterfaces() {
|
||||
Type[] superInterfaces = this.superInterfaces;
|
||||
if (superInterfaces == null) { // lazily initialize super interfaces
|
||||
// first, extract super interface subtree(s) from AST
|
||||
TypeTree[] ts = getTree().getSuperInterfaces();
|
||||
// create array to store reified subtree(s)
|
||||
Type[] sis = new Type[ts.length];
|
||||
superInterfaces = new Type[ts.length];
|
||||
// reify all subtrees
|
||||
for (int i = 0; i < ts.length; i++) {
|
||||
Reifier r = getReifier(); // obtain visitor
|
||||
ts[i].accept(r);// reify subtree
|
||||
// extract result from visitor and store it
|
||||
sis[i] = r.getResult();
|
||||
superInterfaces[i] = r.getResult();
|
||||
}
|
||||
superInterfaces = sis; // cache overall result
|
||||
this.superInterfaces = superInterfaces;
|
||||
}
|
||||
return superInterfaces.clone(); // return cached result
|
||||
}
|
||||
|
@ -42,7 +42,8 @@ import sun.reflect.generics.visitor.Reifier;
|
||||
public abstract class GenericDeclRepository<S extends Signature>
|
||||
extends AbstractRepository<S> {
|
||||
|
||||
private TypeVariable<?>[] typeParams; // caches the formal type parameters
|
||||
/** The formal type parameters. Lazily initialized. */
|
||||
private volatile TypeVariable<?>[] typeParams;
|
||||
|
||||
protected GenericDeclRepository(String rawSig, GenericsFactory f) {
|
||||
super(rawSig, f);
|
||||
@ -55,8 +56,7 @@ public abstract class GenericDeclRepository<S extends Signature>
|
||||
* If the corresponding field is non-null, it is returned.
|
||||
* If not, it is created lazily. This is done by selecting the appropriate
|
||||
* part of the tree and transforming it into a reflective object
|
||||
* using a visitor.
|
||||
* a visitor, which is created by feeding it the factory
|
||||
* using a visitor, which is created by feeding it the factory
|
||||
* with which the repository was created.
|
||||
*/
|
||||
|
||||
@ -64,20 +64,21 @@ public abstract class GenericDeclRepository<S extends Signature>
|
||||
* Return the formal type parameters of this generic declaration.
|
||||
* @return the formal type parameters of this generic declaration
|
||||
*/
|
||||
public TypeVariable<?>[] getTypeParameters(){
|
||||
public TypeVariable<?>[] getTypeParameters() {
|
||||
TypeVariable<?>[] typeParams = this.typeParams;
|
||||
if (typeParams == null) { // lazily initialize type parameters
|
||||
// first, extract type parameter subtree(s) from AST
|
||||
FormalTypeParameter[] ftps = getTree().getFormalTypeParameters();
|
||||
// create array to store reified subtree(s)
|
||||
TypeVariable<?>[] tps = new TypeVariable<?>[ftps.length];
|
||||
typeParams = new TypeVariable<?>[ftps.length];
|
||||
// reify all subtrees
|
||||
for (int i = 0; i < ftps.length; i++) {
|
||||
Reifier r = getReifier(); // obtain visitor
|
||||
ftps[i].accept(r); // reify subtree
|
||||
// extract result from visitor and store it
|
||||
tps[i] = (TypeVariable<?>) r.getResult();
|
||||
typeParams[i] = (TypeVariable<?>) r.getResult();
|
||||
}
|
||||
typeParams = tps; // cache overall result
|
||||
this.typeParams = typeParams; // cache overall result
|
||||
}
|
||||
return typeParams.clone(); // return cached result
|
||||
}
|
||||
|
@ -42,7 +42,9 @@ public abstract class AbstractScope<D extends GenericDeclaration>
|
||||
implements Scope {
|
||||
|
||||
private final D recvr; // the declaration whose scope this instance represents
|
||||
private Scope enclosingScope; // the enclosing scope of this scope
|
||||
|
||||
/** The enclosing scope of this scope. Lazily initialized. */
|
||||
private volatile Scope enclosingScope;
|
||||
|
||||
/**
|
||||
* Constructor. Takes a reflective object whose scope the newly
|
||||
@ -71,7 +73,11 @@ public abstract class AbstractScope<D extends GenericDeclaration>
|
||||
* @return the enclosing scope
|
||||
*/
|
||||
protected Scope getEnclosingScope(){
|
||||
if (enclosingScope == null) {enclosingScope = computeEnclosingScope();}
|
||||
Scope enclosingScope = this.enclosingScope;
|
||||
if (enclosingScope == null) {
|
||||
enclosingScope = computeEnclosingScope();
|
||||
this.enclosingScope = enclosingScope;
|
||||
}
|
||||
return enclosingScope;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -968,7 +968,7 @@ final class CipherSuite implements Comparable<CipherSuite> {
|
||||
* 1. Prefer Suite B compliant cipher suites, see RFC6460 (To be
|
||||
* changed later, see below).
|
||||
* 2. Prefer the stronger bulk cipher, in the order of AES_256(GCM),
|
||||
* AES_128(GCM), AES_256, AES_128, RC-4, 3DES-EDE.
|
||||
* AES_128(GCM), AES_256, AES_128, 3DES-EDE, RC-4.
|
||||
* 3. Prefer the stronger MAC algorithm, in the order of SHA384,
|
||||
* SHA256, SHA, MD5.
|
||||
* 4. Prefer the better performance of key exchange and digital
|
||||
@ -1087,18 +1087,6 @@ final class CipherSuite implements Comparable<CipherSuite> {
|
||||
add("TLS_DHE_DSS_WITH_AES_128_CBC_SHA",
|
||||
0x0032, --p, K_DHE_DSS, B_AES_128, T);
|
||||
|
||||
// RC-4
|
||||
add("TLS_ECDHE_ECDSA_WITH_RC4_128_SHA",
|
||||
0xC007, --p, K_ECDHE_ECDSA, B_RC4_128, N);
|
||||
add("TLS_ECDHE_RSA_WITH_RC4_128_SHA",
|
||||
0xC011, --p, K_ECDHE_RSA, B_RC4_128, N);
|
||||
add("SSL_RSA_WITH_RC4_128_SHA",
|
||||
0x0005, --p, K_RSA, B_RC4_128, N);
|
||||
add("TLS_ECDH_ECDSA_WITH_RC4_128_SHA",
|
||||
0xC002, --p, K_ECDH_ECDSA, B_RC4_128, N);
|
||||
add("TLS_ECDH_RSA_WITH_RC4_128_SHA",
|
||||
0xC00C, --p, K_ECDH_RSA, B_RC4_128, N);
|
||||
|
||||
// 3DES_EDE
|
||||
add("TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA",
|
||||
0xC008, --p, K_ECDHE_ECDSA, B_3DES, T);
|
||||
@ -1115,6 +1103,17 @@ final class CipherSuite implements Comparable<CipherSuite> {
|
||||
add("SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA",
|
||||
0x0013, --p, K_DHE_DSS, B_3DES, N);
|
||||
|
||||
// RC-4
|
||||
add("TLS_ECDHE_ECDSA_WITH_RC4_128_SHA",
|
||||
0xC007, --p, K_ECDHE_ECDSA, B_RC4_128, N);
|
||||
add("TLS_ECDHE_RSA_WITH_RC4_128_SHA",
|
||||
0xC011, --p, K_ECDHE_RSA, B_RC4_128, N);
|
||||
add("SSL_RSA_WITH_RC4_128_SHA",
|
||||
0x0005, --p, K_RSA, B_RC4_128, N);
|
||||
add("TLS_ECDH_ECDSA_WITH_RC4_128_SHA",
|
||||
0xC002, --p, K_ECDH_ECDSA, B_RC4_128, N);
|
||||
add("TLS_ECDH_RSA_WITH_RC4_128_SHA",
|
||||
0xC00C, --p, K_ECDH_RSA, B_RC4_128, N);
|
||||
add("SSL_RSA_WITH_RC4_128_MD5",
|
||||
0x0004, --p, K_RSA, B_RC4_128, N);
|
||||
|
||||
@ -1134,7 +1133,7 @@ final class CipherSuite implements Comparable<CipherSuite> {
|
||||
* 2. If a cipher suite has been obsoleted, we put it at the end of
|
||||
* the list.
|
||||
* 3. Prefer the stronger bulk cipher, in the order of AES_256,
|
||||
* AES_128, RC-4, 3DES-EDE, DES, RC4_40, DES40, NULL.
|
||||
* AES_128, 3DES-EDE, RC-4, DES, DES40, RC4_40, NULL.
|
||||
* 4. Prefer the stronger MAC algorithm, in the order of SHA384,
|
||||
* SHA256, SHA, MD5.
|
||||
* 5. Prefer the better performance of key exchange and digital
|
||||
@ -1162,15 +1161,40 @@ final class CipherSuite implements Comparable<CipherSuite> {
|
||||
add("TLS_DH_anon_WITH_AES_128_CBC_SHA",
|
||||
0x0034, --p, K_DH_ANON, B_AES_128, N);
|
||||
|
||||
add("TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA",
|
||||
0xC017, --p, K_ECDH_ANON, B_3DES, N);
|
||||
add("SSL_DH_anon_WITH_3DES_EDE_CBC_SHA",
|
||||
0x001b, --p, K_DH_ANON, B_3DES, N);
|
||||
|
||||
add("TLS_ECDH_anon_WITH_RC4_128_SHA",
|
||||
0xC016, --p, K_ECDH_ANON, B_RC4_128, N);
|
||||
add("SSL_DH_anon_WITH_RC4_128_MD5",
|
||||
0x0018, --p, K_DH_ANON, B_RC4_128, N);
|
||||
|
||||
add("TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA",
|
||||
0xC017, --p, K_ECDH_ANON, B_3DES, N);
|
||||
add("SSL_DH_anon_WITH_3DES_EDE_CBC_SHA",
|
||||
0x001b, --p, K_DH_ANON, B_3DES, N);
|
||||
// weak cipher suites obsoleted in TLS 1.2
|
||||
add("SSL_RSA_WITH_DES_CBC_SHA",
|
||||
0x0009, --p, K_RSA, B_DES, N, tls12);
|
||||
add("SSL_DHE_RSA_WITH_DES_CBC_SHA",
|
||||
0x0015, --p, K_DHE_RSA, B_DES, N, tls12);
|
||||
add("SSL_DHE_DSS_WITH_DES_CBC_SHA",
|
||||
0x0012, --p, K_DHE_DSS, B_DES, N, tls12);
|
||||
add("SSL_DH_anon_WITH_DES_CBC_SHA",
|
||||
0x001a, --p, K_DH_ANON, B_DES, N, tls12);
|
||||
|
||||
// weak cipher suites obsoleted in TLS 1.1
|
||||
add("SSL_RSA_EXPORT_WITH_DES40_CBC_SHA",
|
||||
0x0008, --p, K_RSA_EXPORT, B_DES_40, N, tls11);
|
||||
add("SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA",
|
||||
0x0014, --p, K_DHE_RSA, B_DES_40, N, tls11);
|
||||
add("SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA",
|
||||
0x0011, --p, K_DHE_DSS, B_DES_40, N, tls11);
|
||||
add("SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA",
|
||||
0x0019, --p, K_DH_ANON, B_DES_40, N, tls11);
|
||||
|
||||
add("SSL_RSA_EXPORT_WITH_RC4_40_MD5",
|
||||
0x0003, --p, K_RSA_EXPORT, B_RC4_40, N, tls11);
|
||||
add("SSL_DH_anon_EXPORT_WITH_RC4_40_MD5",
|
||||
0x0017, --p, K_DH_ANON, B_RC4_40, N, tls11);
|
||||
|
||||
add("TLS_RSA_WITH_NULL_SHA256",
|
||||
0x003b, --p, K_RSA, B_NULL, N, max, tls12, P_SHA256);
|
||||
@ -1189,52 +1213,27 @@ final class CipherSuite implements Comparable<CipherSuite> {
|
||||
add("SSL_RSA_WITH_NULL_MD5",
|
||||
0x0001, --p, K_RSA, B_NULL, N);
|
||||
|
||||
// weak cipher suites obsoleted in TLS 1.2
|
||||
add("SSL_RSA_WITH_DES_CBC_SHA",
|
||||
0x0009, --p, K_RSA, B_DES, N, tls12);
|
||||
add("SSL_DHE_RSA_WITH_DES_CBC_SHA",
|
||||
0x0015, --p, K_DHE_RSA, B_DES, N, tls12);
|
||||
add("SSL_DHE_DSS_WITH_DES_CBC_SHA",
|
||||
0x0012, --p, K_DHE_DSS, B_DES, N, tls12);
|
||||
add("SSL_DH_anon_WITH_DES_CBC_SHA",
|
||||
0x001a, --p, K_DH_ANON, B_DES, N, tls12);
|
||||
|
||||
// weak cipher suites obsoleted in TLS 1.1
|
||||
add("SSL_RSA_EXPORT_WITH_RC4_40_MD5",
|
||||
0x0003, --p, K_RSA_EXPORT, B_RC4_40, N, tls11);
|
||||
add("SSL_DH_anon_EXPORT_WITH_RC4_40_MD5",
|
||||
0x0017, --p, K_DH_ANON, B_RC4_40, N, tls11);
|
||||
|
||||
add("SSL_RSA_EXPORT_WITH_DES40_CBC_SHA",
|
||||
0x0008, --p, K_RSA_EXPORT, B_DES_40, N, tls11);
|
||||
add("SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA",
|
||||
0x0014, --p, K_DHE_RSA, B_DES_40, N, tls11);
|
||||
add("SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA",
|
||||
0x0011, --p, K_DHE_DSS, B_DES_40, N, tls11);
|
||||
add("SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA",
|
||||
0x0019, --p, K_DH_ANON, B_DES_40, N, tls11);
|
||||
|
||||
// Supported Kerberos ciphersuites from RFC2712
|
||||
add("TLS_KRB5_WITH_RC4_128_SHA",
|
||||
0x0020, --p, K_KRB5, B_RC4_128, N);
|
||||
add("TLS_KRB5_WITH_RC4_128_MD5",
|
||||
0x0024, --p, K_KRB5, B_RC4_128, N);
|
||||
add("TLS_KRB5_WITH_3DES_EDE_CBC_SHA",
|
||||
0x001f, --p, K_KRB5, B_3DES, N);
|
||||
add("TLS_KRB5_WITH_3DES_EDE_CBC_MD5",
|
||||
0x0023, --p, K_KRB5, B_3DES, N);
|
||||
add("TLS_KRB5_WITH_RC4_128_SHA",
|
||||
0x0020, --p, K_KRB5, B_RC4_128, N);
|
||||
add("TLS_KRB5_WITH_RC4_128_MD5",
|
||||
0x0024, --p, K_KRB5, B_RC4_128, N);
|
||||
add("TLS_KRB5_WITH_DES_CBC_SHA",
|
||||
0x001e, --p, K_KRB5, B_DES, N, tls12);
|
||||
add("TLS_KRB5_WITH_DES_CBC_MD5",
|
||||
0x0022, --p, K_KRB5, B_DES, N, tls12);
|
||||
add("TLS_KRB5_EXPORT_WITH_RC4_40_SHA",
|
||||
0x0028, --p, K_KRB5_EXPORT, B_RC4_40, N, tls11);
|
||||
add("TLS_KRB5_EXPORT_WITH_RC4_40_MD5",
|
||||
0x002b, --p, K_KRB5_EXPORT, B_RC4_40, N, tls11);
|
||||
add("TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA",
|
||||
0x0026, --p, K_KRB5_EXPORT, B_DES_40, N, tls11);
|
||||
add("TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5",
|
||||
0x0029, --p, K_KRB5_EXPORT, B_DES_40, N, tls11);
|
||||
add("TLS_KRB5_EXPORT_WITH_RC4_40_SHA",
|
||||
0x0028, --p, K_KRB5_EXPORT, B_RC4_40, N, tls11);
|
||||
add("TLS_KRB5_EXPORT_WITH_RC4_40_MD5",
|
||||
0x002b, --p, K_KRB5_EXPORT, B_RC4_40, N, tls11);
|
||||
|
||||
/*
|
||||
* Other values from the TLS Cipher Suite Registry, as of August 2010.
|
||||
|
@ -406,14 +406,17 @@ final class UNIXProcess extends Process {
|
||||
if (hasExited) return true;
|
||||
if (timeout <= 0) return false;
|
||||
|
||||
long timeoutAsNanos = unit.toNanos(timeout);
|
||||
long startTime = System.nanoTime();
|
||||
long rem = timeoutAsNanos;
|
||||
long remainingNanos = unit.toNanos(timeout);
|
||||
long deadline = System.nanoTime() + remainingNanos;
|
||||
|
||||
while (!hasExited && (rem > 0)) {
|
||||
wait(Math.max(TimeUnit.NANOSECONDS.toMillis(rem), 1));
|
||||
rem = timeoutAsNanos - (System.nanoTime() - startTime);
|
||||
}
|
||||
do {
|
||||
// Round up to next millisecond
|
||||
wait(TimeUnit.NANOSECONDS.toMillis(remainingNanos + 999_999L));
|
||||
if (hasExited) {
|
||||
return true;
|
||||
}
|
||||
remainingNanos = deadline - System.nanoTime();
|
||||
} while (remainingNanos > 0);
|
||||
return hasExited;
|
||||
}
|
||||
|
||||
|
@ -461,11 +461,21 @@ final class ProcessImpl extends Process {
|
||||
if (getExitCodeProcess(handle) != STILL_ACTIVE) return true;
|
||||
if (timeout <= 0) return false;
|
||||
|
||||
long msTimeout = unit.toMillis(timeout);
|
||||
long remainingNanos = unit.toNanos(timeout);
|
||||
long deadline = System.nanoTime() + remainingNanos ;
|
||||
|
||||
do {
|
||||
// Round up to next millisecond
|
||||
long msTimeout = TimeUnit.NANOSECONDS.toMillis(remainingNanos + 999_999L);
|
||||
waitForTimeoutInterruptibly(handle, msTimeout);
|
||||
if (Thread.interrupted())
|
||||
throw new InterruptedException();
|
||||
if (getExitCodeProcess(handle) != STILL_ACTIVE) {
|
||||
return true;
|
||||
}
|
||||
remainingNanos = deadline - System.nanoTime();
|
||||
} while (remainingNanos > 0);
|
||||
|
||||
waitForTimeoutInterruptibly(handle, msTimeout);
|
||||
if (Thread.interrupted())
|
||||
throw new InterruptedException();
|
||||
return (getExitCodeProcess(handle) != STILL_ACTIVE);
|
||||
}
|
||||
|
||||
|
@ -32,9 +32,11 @@
|
||||
|
||||
#include "java_net_AbstractPlainDatagramSocketImpl.h"
|
||||
|
||||
static jfieldID IO_fd_fdID;
|
||||
static jfieldID IO_fd_fdID = NULL;
|
||||
static jfieldID apdsi_fdID = NULL;
|
||||
|
||||
static jfieldID apdsi_fdID;
|
||||
static jfieldID apdsi_fd1ID = NULL;
|
||||
static jclass two_stacks_clazz = NULL;
|
||||
|
||||
|
||||
/*
|
||||
@ -48,10 +50,21 @@ Java_java_net_AbstractPlainDatagramSocketImpl_init(JNIEnv *env, jclass cls) {
|
||||
apdsi_fdID = (*env)->GetFieldID(env, cls, "fd",
|
||||
"Ljava/io/FileDescriptor;");
|
||||
CHECK_NULL(apdsi_fdID);
|
||||
|
||||
IO_fd_fdID = NET_GetFileDescriptorID(env);
|
||||
CHECK_NULL(IO_fd_fdID);
|
||||
|
||||
two_stacks_clazz = (*env)->FindClass(env, "java/net/TwoStacksPlainDatagramSocketImpl");
|
||||
CHECK_NULL(two_stacks_clazz);
|
||||
|
||||
/* Handle both TwoStacks and DualStack here */
|
||||
|
||||
if (JNU_Equals(env, cls, two_stacks_clazz)) {
|
||||
/* fd1 present only in TwoStack.. */
|
||||
apdsi_fd1ID = (*env)->GetFieldID(env, cls, "fd1",
|
||||
"Ljava/io/FileDescriptor;");
|
||||
CHECK_NULL(apdsi_fd1ID);
|
||||
}
|
||||
|
||||
JNU_CHECK_EXCEPTION(env);
|
||||
}
|
||||
|
||||
@ -63,20 +76,38 @@ Java_java_net_AbstractPlainDatagramSocketImpl_init(JNIEnv *env, jclass cls) {
|
||||
JNIEXPORT jint JNICALL Java_java_net_AbstractPlainDatagramSocketImpl_dataAvailable
|
||||
(JNIEnv *env, jobject this) {
|
||||
SOCKET fd;
|
||||
int retval;
|
||||
|
||||
SOCKET fd1;
|
||||
int rv = -1, rv1 = -1;
|
||||
jobject fdObj = (*env)->GetObjectField(env, this, apdsi_fdID);
|
||||
|
||||
if (IS_NULL(fdObj)) {
|
||||
JNU_ThrowByName(env, JNU_JAVANETPKG "SocketException",
|
||||
"Socket closed");
|
||||
return -1;
|
||||
if (!IS_NULL(fdObj)) {
|
||||
int retval = 0;
|
||||
fd = (SOCKET)(*env)->GetIntField(env, fdObj, IO_fd_fdID);
|
||||
rv = ioctlsocket(fd, FIONREAD, &retval);
|
||||
if (retval > 0) {
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
fd = (SOCKET)(*env)->GetIntField(env, fdObj, IO_fd_fdID);
|
||||
|
||||
if (ioctlsocket(fd, FIONREAD, &retval) < 0) {
|
||||
if (!IS_NULL(apdsi_fd1ID)) {
|
||||
/* TwoStacks */
|
||||
jobject fd1Obj = (*env)->GetObjectField(env, this, apdsi_fd1ID);
|
||||
if (!IS_NULL(fd1Obj)) {
|
||||
int retval = 0;
|
||||
fd1 = (SOCKET)(*env)->GetIntField(env, fd1Obj, IO_fd_fdID);
|
||||
rv1 = ioctlsocket(fd1, FIONREAD, &retval);
|
||||
if (retval > 0) {
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (rv < 0 && rv1 < 0) {
|
||||
JNU_ThrowByName(env, JNU_JAVANETPKG "SocketException",
|
||||
"Socket closed");
|
||||
return -1;
|
||||
}
|
||||
return retval;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1882,6 +1882,9 @@ public abstract class SunToolkit extends Toolkit
|
||||
|
||||
public synchronized void setWindowDeactivationTime(Window w, long time) {
|
||||
AppContext ctx = getAppContext(w);
|
||||
if (ctx == null) {
|
||||
return;
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
WeakHashMap<Window, Long> map = (WeakHashMap<Window, Long>)ctx.get(DEACTIVATION_TIMES_MAP_KEY);
|
||||
if (map == null) {
|
||||
@ -1893,6 +1896,9 @@ public abstract class SunToolkit extends Toolkit
|
||||
|
||||
public synchronized long getWindowDeactivationTime(Window w) {
|
||||
AppContext ctx = getAppContext(w);
|
||||
if (ctx == null) {
|
||||
return -1;
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
WeakHashMap<Window, Long> map = (WeakHashMap<Window, Long>)ctx.get(DEACTIVATION_TIMES_MAP_KEY);
|
||||
if (map == null) {
|
||||
|
@ -300,11 +300,21 @@ static void addIdentitiesToKeystore(JNIEnv *env, jobject keyStore)
|
||||
|
||||
// Make a java array of certificate data from the chain.
|
||||
jclass byteArrayClass = (*env)->FindClass(env, "[B");
|
||||
if (byteArrayClass == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
jobjectArray javaCertArray = (*env)->NewObjectArray(env, certCount, byteArrayClass, NULL);
|
||||
// Cleanup first then check for a NULL return code
|
||||
(*env)->DeleteLocalRef(env, byteArrayClass);
|
||||
if (javaCertArray == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
|
||||
// And, make an array of the certificate refs.
|
||||
jlongArray certRefArray = (*env)->NewLongArray(env, certCount);
|
||||
if (certRefArray == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
|
||||
SecCertificateRef currCertRef = NULL;
|
||||
|
||||
@ -319,6 +329,9 @@ static void addIdentitiesToKeystore(JNIEnv *env, jobject keyStore)
|
||||
bzero(&currCertData, sizeof(CSSM_DATA));
|
||||
err = SecCertificateGetData(currCertRef, &currCertData);
|
||||
jbyteArray encodedCertData = (*env)->NewByteArray(env, currCertData.Length);
|
||||
if (encodedCertData == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
(*env)->SetByteArrayRegion(env, encodedCertData, 0, currCertData.Length, (jbyte *)currCertData.Data);
|
||||
(*env)->SetObjectArrayElement(env, javaCertArray, i, encodedCertData);
|
||||
jlong certRefElement = ptr_to_jlong(currCertRef);
|
||||
@ -331,6 +344,9 @@ static void addIdentitiesToKeystore(JNIEnv *env, jobject keyStore)
|
||||
|
||||
// Find the label. It's a 'blob', but we interpret as characters.
|
||||
jstring alias = getLabelFromItem(env, (SecKeychainItemRef)certificate);
|
||||
if (alias == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
|
||||
// Find the creation date.
|
||||
jlong creationDate = getModDateFromItem(env, (SecKeychainItemRef)certificate);
|
||||
@ -341,6 +357,7 @@ static void addIdentitiesToKeystore(JNIEnv *env, jobject keyStore)
|
||||
}
|
||||
} while (searchResult == noErr);
|
||||
|
||||
errOut:
|
||||
if (identitySearch != NULL) {
|
||||
CFRelease(identitySearch);
|
||||
}
|
||||
@ -363,10 +380,16 @@ static void addCertificatesToKeystore(JNIEnv *env, jobject keyStore)
|
||||
CSSM_DATA currCertificate;
|
||||
err = SecCertificateGetData(certRef, &currCertificate);
|
||||
jbyteArray certData = (*env)->NewByteArray(env, currCertificate.Length);
|
||||
if (certData == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
(*env)->SetByteArrayRegion(env, certData, 0, currCertificate.Length, (jbyte *)currCertificate.Data);
|
||||
|
||||
// Find the label. It's a 'blob', but we interpret as characters.
|
||||
jstring alias = getLabelFromItem(env, theItem);
|
||||
if (alias == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
|
||||
// Find the creation date.
|
||||
jlong creationDate = getModDateFromItem(env, theItem);
|
||||
@ -377,6 +400,7 @@ static void addCertificatesToKeystore(JNIEnv *env, jobject keyStore)
|
||||
}
|
||||
} while (searchResult == noErr);
|
||||
|
||||
errOut:
|
||||
if (keychainItemSearch != NULL) {
|
||||
CFRelease(keychainItemSearch);
|
||||
}
|
||||
@ -405,6 +429,9 @@ JNIEXPORT jbyteArray JNICALL Java_apple_security_KeychainStore__1getEncodedKeyDa
|
||||
|
||||
if (passwordLen > 0) {
|
||||
passwordChars = (*env)->GetCharArrayElements(env, passwordObj, NULL);
|
||||
if (passwordChars == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
passwordStrRef = CFStringCreateWithCharacters(kCFAllocatorDefault, passwordChars, passwordLen);
|
||||
}
|
||||
}
|
||||
@ -424,9 +451,13 @@ JNIEXPORT jbyteArray JNICALL Java_apple_security_KeychainStore__1getEncodedKeyDa
|
||||
if (err == noErr) {
|
||||
CFIndex size = CFDataGetLength(exportedData);
|
||||
returnValue = (*env)->NewByteArray(env, size);
|
||||
if (returnValue == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
(*env)->SetByteArrayRegion(env, returnValue, 0, size, (jbyte *)CFDataGetBytePtr(exportedData));
|
||||
}
|
||||
|
||||
errOut:
|
||||
if (exportedData) CFRelease(exportedData);
|
||||
if (passwordStrRef) CFRelease(passwordStrRef);
|
||||
|
||||
@ -467,6 +498,9 @@ JNF_COCOA_ENTER(env);
|
||||
|
||||
jsize dataSize = (*env)->GetArrayLength(env, rawDataObj);
|
||||
jbyte *rawData = (*env)->GetByteArrayElements(env, rawDataObj, NULL);
|
||||
if (rawData == NULL) {
|
||||
goto errOut;
|
||||
}
|
||||
|
||||
CFDataRef cfDataToImport = CFDataCreate(kCFAllocatorDefault, (UInt8 *)rawData, dataSize);
|
||||
CFArrayRef createdItems = NULL;
|
||||
@ -523,6 +557,8 @@ JNF_COCOA_ENTER(env);
|
||||
CFRelease(createdItems);
|
||||
}
|
||||
|
||||
errOut: ;
|
||||
|
||||
JNF_COCOA_EXIT(env);
|
||||
|
||||
return returnValue;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -82,6 +82,7 @@ class ServerImpl implements TimeSource {
|
||||
|
||||
private Timer timer, timer1;
|
||||
private Logger logger;
|
||||
private Thread dispatcherThread;
|
||||
|
||||
ServerImpl (
|
||||
HttpServer wrapper, String protocol, InetSocketAddress addr, int backlog
|
||||
@ -141,9 +142,9 @@ class ServerImpl implements TimeSource {
|
||||
if (executor == null) {
|
||||
executor = new DefaultExecutor();
|
||||
}
|
||||
Thread t = new Thread (dispatcher);
|
||||
dispatcherThread = new Thread (dispatcher);
|
||||
started = true;
|
||||
t.start();
|
||||
dispatcherThread.start();
|
||||
}
|
||||
|
||||
public void setExecutor (Executor executor) {
|
||||
@ -205,6 +206,12 @@ class ServerImpl implements TimeSource {
|
||||
if (timer1Enabled) {
|
||||
timer1.cancel();
|
||||
}
|
||||
try {
|
||||
dispatcherThread.join();
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
logger.log(Level.FINER, "ServerImpl.stop: ", e);
|
||||
}
|
||||
}
|
||||
|
||||
Dispatcher dispatcher;
|
||||
|
64
jdk/test/com/sun/net/httpserver/SimpleHttpServerTest.java
Normal file
64
jdk/test/com/sun/net/httpserver/SimpleHttpServerTest.java
Normal file
@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @bug 8015692
|
||||
* @summary Test HttpServer instantiation, start, and stop repeated in a loop
|
||||
* Testing for Bind exception on Windows
|
||||
*/
|
||||
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.ServerSocket;
|
||||
|
||||
import com.sun.net.httpserver.HttpServer;
|
||||
|
||||
|
||||
public class SimpleHttpServerTest {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
System.out.println(System.getProperty("java.version"));
|
||||
InetSocketAddress serverAddr = new InetSocketAddress(0);
|
||||
HttpServer server = HttpServer.create(serverAddr, 0);
|
||||
final int serverPort = server.getAddress().getPort();
|
||||
server.start();
|
||||
server.stop(0);
|
||||
serverAddr = new InetSocketAddress(serverPort);
|
||||
int exceptionCount = 0;
|
||||
System.out.println("Using serverPort == " + serverPort);
|
||||
for (int i = 0; i < 100; i++) {
|
||||
try {
|
||||
server = HttpServer.create(serverAddr, 0);
|
||||
server.start();
|
||||
server.stop(0);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
exceptionCount++;
|
||||
}
|
||||
}
|
||||
if (exceptionCount > 0) {
|
||||
throw new RuntimeException("Test Failed");
|
||||
}
|
||||
}
|
||||
}
|
168
jdk/test/java/lang/Class/getFields/Sanity.java
Normal file
168
jdk/test/java/lang/Class/getFields/Sanity.java
Normal file
@ -0,0 +1,168 @@
|
||||
/*
|
||||
* Copyright 2014 Google, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
* @bug 8063147
|
||||
* @summary Tests for Class.getFields().
|
||||
* @run testng Sanity
|
||||
*/
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.testng.annotations.Test;
|
||||
import static org.testng.Assert.*;
|
||||
|
||||
public class Sanity {
|
||||
public interface EmptyInterface {}
|
||||
class EmptyClass {}
|
||||
interface BI1 {
|
||||
public int i = 1;
|
||||
int j = 2;
|
||||
}
|
||||
interface BI2 {
|
||||
int k = 1;
|
||||
}
|
||||
public interface DI extends BI1, BI2, EmptyInterface {
|
||||
int m = 5;
|
||||
}
|
||||
interface DDI extends DI {
|
||||
int n = 6;
|
||||
}
|
||||
|
||||
public class D extends EmptyClass {
|
||||
public int publicDField;
|
||||
protected int protectedDField;
|
||||
private int privateDField;
|
||||
}
|
||||
|
||||
class DD extends D {
|
||||
public int publicDDField;
|
||||
protected int protectedDDField;
|
||||
private int privateDDField;
|
||||
}
|
||||
|
||||
public class Universe extends DD implements DDI {
|
||||
public int publicUniverseField;
|
||||
protected int protectedUniverseField;
|
||||
private int privateUniverseField;
|
||||
}
|
||||
|
||||
void assertContainsNoFields(Class<?> clazz) {
|
||||
assertEquals(clazz.getFields().length, 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void primitiveTypesHaveNoFields() throws Exception {
|
||||
assertContainsNoFields(byte.class);
|
||||
assertContainsNoFields(char.class);
|
||||
assertContainsNoFields(short.class);
|
||||
assertContainsNoFields(int.class);
|
||||
assertContainsNoFields(long.class);
|
||||
assertContainsNoFields(boolean.class);
|
||||
assertContainsNoFields(void.class);
|
||||
assertContainsNoFields(double.class);
|
||||
assertContainsNoFields(float.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void arrayTypesHaveNoFields() throws Exception {
|
||||
assertContainsNoFields(byte[].class);
|
||||
assertContainsNoFields(Object[].class);
|
||||
assertContainsNoFields(java.util.Map[].class);
|
||||
assertContainsNoFields(java.util.HashMap[].class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void emptyInterfacesHaveNoFields() throws Exception {
|
||||
assertContainsNoFields(EmptyInterface.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void emptyClassesHaveNoFields() throws Exception {
|
||||
assertContainsNoFields(EmptyClass.class);
|
||||
class EmptyLocalClass {}
|
||||
assertContainsNoFields(EmptyLocalClass.class);
|
||||
}
|
||||
|
||||
void assertContainsFields(Class<?> clazz, int count) {
|
||||
assertEquals(clazz.getFields().length, count);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void checkFieldCounts() throws Exception {
|
||||
assertContainsFields(BI1.class, 2);
|
||||
assertContainsFields(BI2.class, 1);
|
||||
assertContainsFields(DI.class, 4);
|
||||
assertContainsFields(DDI.class, 5);
|
||||
assertContainsFields(D.class, 1);
|
||||
assertContainsFields(DD.class, 2);
|
||||
assertContainsFields(Universe.class, 8);
|
||||
}
|
||||
|
||||
void assertContainsFields(Class<?> derived, Class<?> base) {
|
||||
List<Field> derivedFields = Arrays.asList(derived.getFields());
|
||||
List<Field> baseFields = Arrays.asList(base.getFields());
|
||||
assertTrue(derivedFields.containsAll(baseFields));
|
||||
}
|
||||
|
||||
List<Class<?>> directSupers(Class<?> clazz) {
|
||||
List<Class<?>> directSupers = new ArrayList<>();
|
||||
directSupers.addAll(Arrays.asList(clazz.getInterfaces()));
|
||||
if (clazz.getSuperclass() != null) {
|
||||
directSupers.add(clazz.getSuperclass());
|
||||
}
|
||||
return directSupers;
|
||||
}
|
||||
|
||||
void assertContainsSuperFields(Class<?> clazz) {
|
||||
for (Class<?> directSuper : directSupers(clazz)) {
|
||||
assertContainsFields(clazz, directSuper);
|
||||
}
|
||||
}
|
||||
|
||||
List<Class<?>> testClasses() {
|
||||
List<Class<?>> testClasses = new ArrayList<>();
|
||||
testClasses.add(Sanity.class);
|
||||
testClasses.addAll(Arrays.asList(Sanity.class.getDeclaredClasses()));
|
||||
assertEquals(testClasses.size(), 10);
|
||||
return testClasses;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void fieldsAreInheritedFromSupers() throws Exception {
|
||||
for (Class clazz : testClasses()) {
|
||||
assertContainsSuperFields(clazz);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getFieldIsConsistentWithGetFields() throws Exception {
|
||||
for (Class clazz : testClasses()) {
|
||||
for (Field field : clazz.getFields()) {
|
||||
assertEquals(field, clazz.getField(field.getName()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class Basic$Type$ extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class Basic$Type$ extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -572,6 +580,14 @@ public class Basic$Type$ extends Basic {
|
||||
test("%(10d", " (12345)", negate(oneToFive));
|
||||
test("%-10d", "12345 ", oneToFive);
|
||||
test("%-10d", "-12345 ", negate(oneToFive));
|
||||
// , variations:
|
||||
test("% ,d", " 12,345", oneToFive);
|
||||
test("% ,d", "-12,345", negate(oneToFive));
|
||||
test("%0,10d", "000012,345", oneToFive);
|
||||
test("%0,10d", "-00012,345", negate(oneToFive));
|
||||
test("%(,10d", " (12,345)", negate(oneToFive));
|
||||
test("%-,10d", "12,345 ", oneToFive);
|
||||
test("%-,10d", "-12,345 ", negate(oneToFive));
|
||||
|
||||
#else[short]
|
||||
#if[prim]
|
||||
@ -594,6 +610,16 @@ public class Basic$Type$ extends Basic {
|
||||
test("%(10d", " (1234567)", negate(oneToSeven));
|
||||
test("%-10d", "1234567 ", oneToSeven);
|
||||
test("%-10d", "-1234567 ", negate(oneToSeven));
|
||||
// , variations:
|
||||
test("% ,d", " 1,234,567", oneToSeven);
|
||||
test("% ,d", "-1,234,567", negate(oneToSeven));
|
||||
test("%+,10d", "+1,234,567", oneToSeven);
|
||||
test("%0,10d", "01,234,567", oneToSeven);
|
||||
test("%0,10d", "-1,234,567", negate(oneToSeven));
|
||||
test("%(,10d", "(1,234,567)", negate(oneToSeven));
|
||||
test("%-,10d", "1,234,567 ", oneToSeven);
|
||||
test("%-,10d", "-1,234,567", negate(oneToSeven));
|
||||
|
||||
#end[prim]
|
||||
#end[short]
|
||||
#end[byte]
|
||||
@ -781,6 +807,14 @@ public class Basic$Type$ extends Basic {
|
||||
test("%+d", "-1234567", new BigInteger("-1234567", 10));
|
||||
test("%-10d", "1234567 ", new BigInteger("1234567", 10));
|
||||
test("%-10d", "-1234567 ", new BigInteger("-1234567", 10));
|
||||
// , variations:
|
||||
test("%0,10d", "01,234,567", new BigInteger("1234567", 10));
|
||||
test("%0,10d", "-1,234,567", new BigInteger("-1234567", 10));
|
||||
test("%(,10d", "(1,234,567)", new BigInteger("-1234567", 10));
|
||||
test("%+,d", "+1,234,567", new BigInteger("1234567", 10));
|
||||
test("%+,d", "-1,234,567", new BigInteger("-1234567", 10));
|
||||
test("%-,10d", "1,234,567 ", new BigInteger("1234567", 10));
|
||||
test("%-,10d", "-1,234,567", new BigInteger("-1234567", 10));
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// %o - BigInteger
|
||||
@ -1039,6 +1073,14 @@ public class Basic$Type$ extends Basic {
|
||||
test("%3.0f", "1000000", 1000000.00);
|
||||
test("%3.0f", "10000000", 10000000.00);
|
||||
test("%3.0f", "100000000", 100000000.00);
|
||||
test("%10.0f", " 1000000", 1000000.00);
|
||||
test("%,10.0f", " 1,000,000", 1000000.00);
|
||||
test("%,10.1f", "1,000,000.0", 1000000.00);
|
||||
test("%,3.0f", "1,000,000", 1000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
#if[BigDecimal]
|
||||
//---------------------------------------------------------------------
|
||||
// %f - BigDecimal
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicBigDecimal extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicBigDecimal extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -810,6 +818,32 @@ public class BasicBigDecimal extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1039,6 +1073,14 @@ public class BasicBigDecimal extends Basic {
|
||||
test("%3.0f", "1000000", 1000000.00);
|
||||
test("%3.0f", "10000000", 10000000.00);
|
||||
test("%3.0f", "100000000", 100000000.00);
|
||||
test("%10.0f", " 1000000", 1000000.00);
|
||||
test("%,10.0f", " 1,000,000", 1000000.00);
|
||||
test("%,10.1f", "1,000,000.0", 1000000.00);
|
||||
test("%,3.0f", "1,000,000", 1000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// %f - BigDecimal
|
||||
@ -1330,6 +1372,35 @@ public class BasicBigDecimal extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicBigInteger extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicBigInteger extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -735,6 +743,24 @@ public class BasicBigInteger extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -781,6 +807,14 @@ public class BasicBigInteger extends Basic {
|
||||
test("%+d", "-1234567", new BigInteger("-1234567", 10));
|
||||
test("%-10d", "1234567 ", new BigInteger("1234567", 10));
|
||||
test("%-10d", "-1234567 ", new BigInteger("-1234567", 10));
|
||||
// , variations:
|
||||
test("%0,10d", "01,234,567", new BigInteger("1234567", 10));
|
||||
test("%0,10d", "-1,234,567", new BigInteger("-1234567", 10));
|
||||
test("%(,10d", "(1,234,567)", new BigInteger("-1234567", 10));
|
||||
test("%+,d", "+1,234,567", new BigInteger("1234567", 10));
|
||||
test("%+,d", "-1,234,567", new BigInteger("-1234567", 10));
|
||||
test("%-,10d", "1,234,567 ", new BigInteger("1234567", 10));
|
||||
test("%-,10d", "-1,234,567", new BigInteger("-1234567", 10));
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// %o - BigInteger
|
||||
@ -1552,6 +1586,59 @@ public class BasicBigInteger extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicBoolean extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicBoolean extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -1552,6 +1560,85 @@ public class BasicBoolean extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicBooleanObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicBooleanObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -1552,6 +1560,85 @@ public class BasicBooleanObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicByte extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicByte extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -578,6 +586,24 @@ public class BasicByte extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1552,6 +1578,67 @@ public class BasicByte extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicByteObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicByteObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -578,6 +586,24 @@ public class BasicByteObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1552,6 +1578,67 @@ public class BasicByteObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicChar extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicChar extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -1552,6 +1560,85 @@ public class BasicChar extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicCharObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicCharObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -1552,6 +1560,85 @@ public class BasicCharObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicDateTime extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicDateTime extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -1552,6 +1560,85 @@ public class BasicDateTime extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,6 +36,9 @@ import java.math.BigInteger;
|
||||
import java.text.DateFormatSymbols;
|
||||
import java.util.*;
|
||||
|
||||
import sun.misc.DoubleConsts;
|
||||
|
||||
|
||||
import static java.util.Calendar.*;
|
||||
|
||||
|
||||
@ -48,6 +51,10 @@ public class BasicDouble extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -55,6 +62,10 @@ public class BasicDouble extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -838,6 +849,32 @@ public class BasicDouble extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1036,6 +1073,14 @@ public class BasicDouble extends Basic {
|
||||
test("%3.0f", "1000000", 1000000.00);
|
||||
test("%3.0f", "10000000", 10000000.00);
|
||||
test("%3.0f", "100000000", 100000000.00);
|
||||
test("%10.0f", " 1000000", 1000000.00);
|
||||
test("%,10.0f", " 1,000,000", 1000000.00);
|
||||
test("%,10.1f", "1,000,000.0", 1000000.00);
|
||||
test("%,3.0f", "1,000,000", 1000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
|
||||
|
||||
|
||||
@ -1310,12 +1355,12 @@ public class BasicDouble extends Basic {
|
||||
test("%.1a", "-0x1.0p0", -1.0);
|
||||
test("%.11a", "0x1.80000000000p1", 3.0);
|
||||
test("%.1a", "0x1.8p1", 3.0);
|
||||
test("%.11a", "0x1.00000000000p-1022", Double.MIN_NORMAL);
|
||||
test("%.1a", "0x1.0p-1022", Double.MIN_NORMAL);
|
||||
test("%.11a", "0x1.00000000000p-1022", DoubleConsts.MIN_NORMAL);
|
||||
test("%.1a", "0x1.0p-1022", DoubleConsts.MIN_NORMAL);
|
||||
test("%.11a", "0x1.00000000000p-1022",
|
||||
Math.nextDown(Double.MIN_NORMAL));
|
||||
Math.nextDown(DoubleConsts.MIN_NORMAL));
|
||||
test("%.1a", "0x1.0p-1022",
|
||||
Math.nextDown(Double.MIN_NORMAL));
|
||||
Math.nextDown(DoubleConsts.MIN_NORMAL));
|
||||
test("%.11a", "0x1.ffffffffffep-1023", 0x0.fffffffffffp-1022);
|
||||
test("%.1a", "0x1.0p-1022", 0x0.fffffffffffp-1022);
|
||||
test("%.30a", "0x0.000000000000100000000000000000p-1022", Double.MIN_VALUE);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicDoubleObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicDoubleObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -851,6 +859,32 @@ public class BasicDoubleObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1039,6 +1073,14 @@ public class BasicDoubleObject extends Basic {
|
||||
test("%3.0f", "1000000", 1000000.00);
|
||||
test("%3.0f", "10000000", 10000000.00);
|
||||
test("%3.0f", "100000000", 100000000.00);
|
||||
test("%10.0f", " 1000000", 1000000.00);
|
||||
test("%,10.0f", " 1,000,000", 1000000.00);
|
||||
test("%,10.1f", "1,000,000.0", 1000000.00);
|
||||
test("%,3.0f", "1,000,000", 1000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
|
||||
|
||||
|
||||
@ -1330,6 +1372,35 @@ public class BasicDoubleObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicFloat extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicFloat extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -821,6 +829,32 @@ public class BasicFloat extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1039,6 +1073,14 @@ public class BasicFloat extends Basic {
|
||||
test("%3.0f", "1000000", 1000000.00);
|
||||
test("%3.0f", "10000000", 10000000.00);
|
||||
test("%3.0f", "100000000", 100000000.00);
|
||||
test("%10.0f", " 1000000", 1000000.00);
|
||||
test("%,10.0f", " 1,000,000", 1000000.00);
|
||||
test("%,10.1f", "1,000,000.0", 1000000.00);
|
||||
test("%,3.0f", "1,000,000", 1000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
|
||||
|
||||
|
||||
@ -1330,6 +1372,35 @@ public class BasicFloat extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicFloatObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicFloatObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -831,6 +839,32 @@ public class BasicFloatObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1039,6 +1073,14 @@ public class BasicFloatObject extends Basic {
|
||||
test("%3.0f", "1000000", 1000000.00);
|
||||
test("%3.0f", "10000000", 10000000.00);
|
||||
test("%3.0f", "100000000", 100000000.00);
|
||||
test("%10.0f", " 1000000", 1000000.00);
|
||||
test("%,10.0f", " 1,000,000", 1000000.00);
|
||||
test("%,10.1f", "1,000,000.0", 1000000.00);
|
||||
test("%,3.0f", "1,000,000", 1000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
test("%,3.0f", "10,000,000", 10000000.00);
|
||||
test("%,3.0f", "100,000,000", 100000000.00);
|
||||
|
||||
|
||||
|
||||
@ -1330,6 +1372,35 @@ public class BasicFloatObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicInt extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicInt extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -566,6 +574,14 @@ public class BasicInt extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -594,6 +610,16 @@ public class BasicInt extends Basic {
|
||||
test("%(10d", " (1234567)", negate(oneToSeven));
|
||||
test("%-10d", "1234567 ", oneToSeven);
|
||||
test("%-10d", "-1234567 ", negate(oneToSeven));
|
||||
// , variations:
|
||||
test("% ,d", " 1,234,567", oneToSeven);
|
||||
test("% ,d", "-1,234,567", negate(oneToSeven));
|
||||
test("%+,10d", "+1,234,567", oneToSeven);
|
||||
test("%0,10d", "01,234,567", oneToSeven);
|
||||
test("%0,10d", "-1,234,567", negate(oneToSeven));
|
||||
test("%(,10d", "(1,234,567)", negate(oneToSeven));
|
||||
test("%-,10d", "1,234,567 ", oneToSeven);
|
||||
test("%-,10d", "-1,234,567", negate(oneToSeven));
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1552,6 +1578,67 @@ public class BasicInt extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicIntObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicIntObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -578,6 +586,24 @@ public class BasicIntObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1552,6 +1578,67 @@ public class BasicIntObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicLong extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicLong extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -566,6 +574,14 @@ public class BasicLong extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -594,6 +610,16 @@ public class BasicLong extends Basic {
|
||||
test("%(10d", " (1234567)", negate(oneToSeven));
|
||||
test("%-10d", "1234567 ", oneToSeven);
|
||||
test("%-10d", "-1234567 ", negate(oneToSeven));
|
||||
// , variations:
|
||||
test("% ,d", " 1,234,567", oneToSeven);
|
||||
test("% ,d", "-1,234,567", negate(oneToSeven));
|
||||
test("%+,10d", "+1,234,567", oneToSeven);
|
||||
test("%0,10d", "01,234,567", oneToSeven);
|
||||
test("%0,10d", "-1,234,567", negate(oneToSeven));
|
||||
test("%(,10d", "(1,234,567)", negate(oneToSeven));
|
||||
test("%-,10d", "1,234,567 ", oneToSeven);
|
||||
test("%-,10d", "-1,234,567", negate(oneToSeven));
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1552,6 +1578,67 @@ public class BasicLong extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicLongObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicLongObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -578,6 +586,24 @@ public class BasicLongObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1552,6 +1578,67 @@ public class BasicLongObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicShort extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicShort extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -572,6 +580,24 @@ public class BasicShort extends Basic {
|
||||
test("%(10d", " (12345)", negate(oneToFive));
|
||||
test("%-10d", "12345 ", oneToFive);
|
||||
test("%-10d", "-12345 ", negate(oneToFive));
|
||||
// , variations:
|
||||
test("% ,d", " 12,345", oneToFive);
|
||||
test("% ,d", "-12,345", negate(oneToFive));
|
||||
test("%0,10d", "000012,345", oneToFive);
|
||||
test("%0,10d", "-00012,345", negate(oneToFive));
|
||||
test("%(,10d", " (12,345)", negate(oneToFive));
|
||||
test("%-,10d", "12,345 ", oneToFive);
|
||||
test("%-,10d", "-12,345 ", negate(oneToFive));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1552,6 +1578,67 @@ public class BasicShort extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,10 @@ public class BasicShortObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), Locale.US);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(Locale l, String fs, String exp, Object ... args)
|
||||
@ -58,6 +62,10 @@ public class BasicShortObject extends Basic {
|
||||
Formatter f = new Formatter(new StringBuilder(), l);
|
||||
f.format(fs, args);
|
||||
ck(fs, exp, f.toString());
|
||||
|
||||
f = new Formatter(new StringBuilder(), l);
|
||||
f.format("foo " + fs + " bar", args);
|
||||
ck(fs, "foo " + exp + " bar", f.toString());
|
||||
}
|
||||
|
||||
private static void test(String fs, Object ... args) {
|
||||
@ -578,6 +586,24 @@ public class BasicShortObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1552,6 +1578,67 @@ public class BasicShortObject extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
# questions.
|
||||
#
|
||||
|
||||
javac -d . ../../../../make/tools/src/build/tools/spp/Spp.java
|
||||
javac -d . ../../../../make/src/classes/build/tools/spp/Spp.java
|
||||
|
||||
gen() {
|
||||
# if [ $3 = "true" ]
|
||||
|
74
jdk/test/java/util/jar/Attributes/IterationOrder.java
Normal file
74
jdk/test/java/util/jar/Attributes/IterationOrder.java
Normal file
@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2014 Google, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
* @bug 8062194
|
||||
* @summary Ensure Attribute iteration order is the insertion order.
|
||||
*/
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
import java.util.jar.Attributes;
|
||||
import java.util.jar.Attributes.Name;
|
||||
|
||||
public class IterationOrder {
|
||||
static void checkOrder(Attributes.Name k0, String v0,
|
||||
Attributes.Name k1, String v1,
|
||||
Attributes.Name k2, String v2) {
|
||||
Attributes x = new Attributes();
|
||||
x.put(k0, v0);
|
||||
x.put(k1, v1);
|
||||
x.put(k2, v2);
|
||||
Map.Entry<?,?>[] entries
|
||||
= x.entrySet().toArray(new Map.Entry<?,?>[3]);
|
||||
if (!(entries.length == 3
|
||||
&& entries[0].getKey() == k0
|
||||
&& entries[0].getValue() == v0
|
||||
&& entries[1].getKey() == k1
|
||||
&& entries[1].getValue() == v1
|
||||
&& entries[2].getKey() == k2
|
||||
&& entries[2].getValue() == v2)) {
|
||||
throw new AssertionError(Arrays.toString(entries));
|
||||
}
|
||||
|
||||
Object[] keys = x.keySet().toArray();
|
||||
if (!(keys.length == 3
|
||||
&& keys[0] == k0
|
||||
&& keys[1] == k1
|
||||
&& keys[2] == k2)) {
|
||||
throw new AssertionError(Arrays.toString(keys));
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
Attributes.Name k0 = Name.MANIFEST_VERSION;
|
||||
Attributes.Name k1 = Name.MAIN_CLASS;
|
||||
Attributes.Name k2 = Name.SEALED;
|
||||
String v0 = "42.0";
|
||||
String v1 = "com.google.Hello";
|
||||
String v2 = "yes";
|
||||
checkOrder(k0, v0, k1, v1, k2, v2);
|
||||
checkOrder(k1, v1, k0, v0, k2, v2);
|
||||
checkOrder(k2, v2, k1, v1, k0, v0);
|
||||
}
|
||||
}
|
@ -85,11 +85,6 @@ public class CipherSuitesInOrder {
|
||||
"TLS_ECDH_RSA_WITH_AES_128_CBC_SHA",
|
||||
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA",
|
||||
"TLS_DHE_DSS_WITH_AES_128_CBC_SHA",
|
||||
"TLS_ECDHE_ECDSA_WITH_RC4_128_SHA",
|
||||
"TLS_ECDHE_RSA_WITH_RC4_128_SHA",
|
||||
"SSL_RSA_WITH_RC4_128_SHA",
|
||||
"TLS_ECDH_ECDSA_WITH_RC4_128_SHA",
|
||||
"TLS_ECDH_RSA_WITH_RC4_128_SHA",
|
||||
|
||||
"TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA",
|
||||
"TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA",
|
||||
@ -98,6 +93,12 @@ public class CipherSuitesInOrder {
|
||||
"TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA",
|
||||
"SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA",
|
||||
"SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA",
|
||||
|
||||
"TLS_ECDHE_ECDSA_WITH_RC4_128_SHA",
|
||||
"TLS_ECDHE_RSA_WITH_RC4_128_SHA",
|
||||
"SSL_RSA_WITH_RC4_128_SHA",
|
||||
"TLS_ECDH_ECDSA_WITH_RC4_128_SHA",
|
||||
"TLS_ECDH_RSA_WITH_RC4_128_SHA",
|
||||
"SSL_RSA_WITH_RC4_128_MD5",
|
||||
|
||||
"TLS_EMPTY_RENEGOTIATION_INFO_SCSV",
|
||||
@ -111,10 +112,23 @@ public class CipherSuitesInOrder {
|
||||
"TLS_DH_anon_WITH_AES_128_CBC_SHA256",
|
||||
"TLS_ECDH_anon_WITH_AES_128_CBC_SHA",
|
||||
"TLS_DH_anon_WITH_AES_128_CBC_SHA",
|
||||
"TLS_ECDH_anon_WITH_RC4_128_SHA",
|
||||
"SSL_DH_anon_WITH_RC4_128_MD5",
|
||||
"TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA",
|
||||
"SSL_DH_anon_WITH_3DES_EDE_CBC_SHA",
|
||||
"TLS_ECDH_anon_WITH_RC4_128_SHA",
|
||||
"SSL_DH_anon_WITH_RC4_128_MD5",
|
||||
|
||||
"SSL_RSA_WITH_DES_CBC_SHA",
|
||||
"SSL_DHE_RSA_WITH_DES_CBC_SHA",
|
||||
"SSL_DHE_DSS_WITH_DES_CBC_SHA",
|
||||
"SSL_DH_anon_WITH_DES_CBC_SHA",
|
||||
"SSL_RSA_EXPORT_WITH_DES40_CBC_SHA",
|
||||
"SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA",
|
||||
"SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA",
|
||||
"SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA",
|
||||
|
||||
"SSL_RSA_EXPORT_WITH_RC4_40_MD5",
|
||||
"SSL_DH_anon_EXPORT_WITH_RC4_40_MD5",
|
||||
|
||||
"TLS_RSA_WITH_NULL_SHA256",
|
||||
"TLS_ECDHE_ECDSA_WITH_NULL_SHA",
|
||||
"TLS_ECDHE_RSA_WITH_NULL_SHA",
|
||||
@ -123,26 +137,17 @@ public class CipherSuitesInOrder {
|
||||
"TLS_ECDH_RSA_WITH_NULL_SHA",
|
||||
"TLS_ECDH_anon_WITH_NULL_SHA",
|
||||
"SSL_RSA_WITH_NULL_MD5",
|
||||
"SSL_RSA_WITH_DES_CBC_SHA",
|
||||
"SSL_DHE_RSA_WITH_DES_CBC_SHA",
|
||||
"SSL_DHE_DSS_WITH_DES_CBC_SHA",
|
||||
"SSL_DH_anon_WITH_DES_CBC_SHA",
|
||||
"SSL_RSA_EXPORT_WITH_RC4_40_MD5",
|
||||
"SSL_DH_anon_EXPORT_WITH_RC4_40_MD5",
|
||||
"SSL_RSA_EXPORT_WITH_DES40_CBC_SHA",
|
||||
"SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA",
|
||||
"SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA",
|
||||
"SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA",
|
||||
"TLS_KRB5_WITH_RC4_128_SHA",
|
||||
"TLS_KRB5_WITH_RC4_128_MD5",
|
||||
|
||||
"TLS_KRB5_WITH_3DES_EDE_CBC_SHA",
|
||||
"TLS_KRB5_WITH_3DES_EDE_CBC_MD5",
|
||||
"TLS_KRB5_WITH_RC4_128_SHA",
|
||||
"TLS_KRB5_WITH_RC4_128_MD5",
|
||||
"TLS_KRB5_WITH_DES_CBC_SHA",
|
||||
"TLS_KRB5_WITH_DES_CBC_MD5",
|
||||
"TLS_KRB5_EXPORT_WITH_RC4_40_SHA",
|
||||
"TLS_KRB5_EXPORT_WITH_RC4_40_MD5",
|
||||
"TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA",
|
||||
"TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5"
|
||||
"TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5",
|
||||
"TLS_KRB5_EXPORT_WITH_RC4_40_SHA",
|
||||
"TLS_KRB5_EXPORT_WITH_RC4_40_MD5"
|
||||
);
|
||||
|
||||
private final static String[] protocols = {
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @bug 6476665 7033534 6830714
|
||||
* @bug 6476665 7033534 6830714 8052162
|
||||
* @summary Verifies color conversion of Component Color Model based images
|
||||
* @run main ColConvCCMTest
|
||||
*/
|
||||
|
@ -23,8 +23,8 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 6672144
|
||||
* @summary HttpURLConnection.getInputStream sends POST request after failed chunked send
|
||||
* @bug 6672144 8050983
|
||||
* @summary Do not retry failed request with a streaming body.
|
||||
*/
|
||||
|
||||
import java.net.HttpURLConnection;
|
||||
@ -33,6 +33,7 @@ import java.net.URL;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import static java.lang.System.out;
|
||||
|
||||
public class StreamingRetry implements Runnable {
|
||||
static final int ACCEPT_TIMEOUT = 20 * 1000; // 20 seconds
|
||||
@ -43,11 +44,17 @@ public class StreamingRetry implements Runnable {
|
||||
}
|
||||
|
||||
void instanceMain() throws IOException {
|
||||
test();
|
||||
out.println("Test with default method");
|
||||
test(null);
|
||||
out.println("Test with POST method");
|
||||
test("POST");
|
||||
out.println("Test with PUT method");
|
||||
test("PUT");
|
||||
|
||||
if (failed > 0) throw new RuntimeException("Some tests failed");
|
||||
}
|
||||
|
||||
void test() throws IOException {
|
||||
void test(String method) throws IOException {
|
||||
ss = new ServerSocket(0);
|
||||
ss.setSoTimeout(ACCEPT_TIMEOUT);
|
||||
int port = ss.getLocalPort();
|
||||
@ -58,6 +65,8 @@ public class StreamingRetry implements Runnable {
|
||||
URL url = new URL("http://localhost:" + port + "/");
|
||||
HttpURLConnection uc = (HttpURLConnection) url.openConnection();
|
||||
uc.setDoOutput(true);
|
||||
if (method != null)
|
||||
uc.setRequestMethod(method);
|
||||
uc.setChunkedStreamingMode(4096);
|
||||
OutputStream os = uc.getOutputStream();
|
||||
os.write("Hello there".getBytes());
|
||||
@ -79,7 +88,7 @@ public class StreamingRetry implements Runnable {
|
||||
ss.close();
|
||||
fail("The server shouldn't accept a second connection");
|
||||
} catch (IOException e) {
|
||||
//OK, the clien will close the server socket if successfull
|
||||
//OK, the client will close the server socket if successful
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,4 +21,4 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
tzdata2014g
|
||||
tzdata2014j
|
||||
|
@ -29,20 +29,19 @@
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2013-02-21):
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Another source occasionally used is Edward W. Whitman, World Time Differences,
|
||||
# Whitman Publishing Co, 2 Niagara Av, Ealing, London (undated), which
|
||||
@ -88,7 +87,6 @@
|
||||
# 3:00 CAST Central Africa Summer Time (no longer used)
|
||||
# 3:00 SAST South Africa Summer Time (no longer used)
|
||||
# 3:00 EAT East Africa Time
|
||||
# 4:00 EAST East Africa Summer Time (no longer used)
|
||||
|
||||
# Algeria
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
@ -133,23 +131,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.
|
||||
@ -179,15 +167,10 @@ Zone Africa/Ndjamena 1:00:12 - LMT 1912 # N'Djamena
|
||||
1:00 - WAT
|
||||
|
||||
# Comoros
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Indian/Comoro 2:53:04 - LMT 1911 Jul # Moroni, Gran Comoro
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# 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.
|
||||
@ -208,9 +191,7 @@ Link Africa/Abidjan Africa/Sao_Tome # São Tomé and Príncipe
|
||||
Link Africa/Abidjan Atlantic/St_Helena # St Helena
|
||||
|
||||
# Djibouti
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Djibouti 2:52:36 - LMT 1911 Jul
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
###############################################################################
|
||||
|
||||
@ -339,7 +320,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):
|
||||
@ -423,27 +404,8 @@ Zone Africa/Cairo 2:05:09 - LMT 1900 Oct
|
||||
# See Africa/Lagos.
|
||||
|
||||
# Eritrea
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Asmara 2:35:32 - LMT 1870
|
||||
2:35:32 - AMT 1890 # Asmara Mean Time
|
||||
2:35:20 - ADMT 1936 May 5 # Adis Dera MT
|
||||
3:00 - EAT
|
||||
|
||||
# Ethiopia
|
||||
# From Paul Eggert (2014-07-31):
|
||||
# Like the Swahili of Kenya and Tanzania, many Ethiopians keep a
|
||||
# 12-hour clock starting at our 06:00, so their "8 o'clock" is our
|
||||
# 02:00 or 14:00. Keep this in mind when you ask the time in Amharic.
|
||||
#
|
||||
# Shanks & Pottenger write that Ethiopia had six narrowly-spaced time
|
||||
# zones between 1870 and 1890, that they merged to 38E50 (2:35:20) in
|
||||
# 1890, and that they switched to 3:00 on 1936-05-05. Perhaps 38E50
|
||||
# was for Adis Dera. Quite likely the Shanks data entries are wrong
|
||||
# anyway.
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Addis_Ababa 2:34:48 - LMT 1870
|
||||
2:35:20 - ADMT 1936 May 5 # Adis Dera MT
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Gabon
|
||||
# See Africa/Lagos.
|
||||
@ -487,13 +449,18 @@ Zone Africa/Nairobi 2:27:16 - LMT 1928 Jul
|
||||
2:30 - BEAT 1940
|
||||
2:45 - BEAUT 1960
|
||||
3:00 - EAT
|
||||
Link Africa/Nairobi Africa/Addis_Ababa # Ethiopia
|
||||
Link Africa/Nairobi Africa/Asmara # Eritrea
|
||||
Link Africa/Nairobi Africa/Dar_es_Salaam # Tanzania
|
||||
Link Africa/Nairobi Africa/Djibouti
|
||||
Link Africa/Nairobi Africa/Kampala # Uganda
|
||||
Link Africa/Nairobi Africa/Mogadishu # Somalia
|
||||
Link Africa/Nairobi Indian/Antananarivo # Madagascar
|
||||
Link Africa/Nairobi Indian/Comoro
|
||||
Link Africa/Nairobi Indian/Mayotte
|
||||
|
||||
# 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):
|
||||
@ -568,16 +535,10 @@ Zone Africa/Tripoli 0:52:44 - LMT 1920
|
||||
2:00 - EET
|
||||
|
||||
# Madagascar
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Indian/Antananarivo 3:10:04 - LMT 1911 Jul
|
||||
3:00 - EAT 1954 Feb 27 23:00s
|
||||
3:00 1:00 EAST 1954 May 29 23:00s
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Malawi
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Blantyre 2:20:00 - LMT 1903 Mar
|
||||
2:00 - CAT
|
||||
# See Africa/Maputo.
|
||||
|
||||
# Mali
|
||||
# Mauritania
|
||||
@ -677,9 +638,7 @@ Zone Indian/Mauritius 3:50:00 - LMT 1907 # Port Louis
|
||||
# no information; probably like Indian/Mauritius
|
||||
|
||||
# Mayotte
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Indian/Mayotte 3:00:56 - LMT 1911 Jul # Mamoutzou
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Morocco
|
||||
# See the 'europe' file for Spanish Morocco (Africa/Ceuta).
|
||||
@ -987,6 +946,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.
|
||||
@ -1054,9 +1020,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.
|
||||
@ -1086,11 +1050,7 @@ Zone Indian/Mahe 3:41:48 - LMT 1906 Jun # Victoria
|
||||
# See Africa/Abidjan.
|
||||
|
||||
# Somalia
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Mogadishu 3:01:28 - LMT 1893 Nov
|
||||
3:00 - EAT 1931
|
||||
2:30 - BEAT 1957
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# South Africa
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
@ -1100,6 +1060,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
|
||||
@ -1127,16 +1090,10 @@ 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]
|
||||
Zone Africa/Dar_es_Salaam 2:37:08 - LMT 1931
|
||||
3:00 - EAT 1948
|
||||
2:45 - BEAUT 1961
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# Togo
|
||||
# See Africa/Abidjan.
|
||||
@ -1242,19 +1199,8 @@ Zone Africa/Tunis 0:40:44 - LMT 1881 May 12
|
||||
1:00 Tunisia CE%sT
|
||||
|
||||
# Uganda
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Africa/Kampala 2:09:40 - LMT 1928 Jul
|
||||
3:00 - EAT 1930
|
||||
2:30 - BEAT 1948
|
||||
2:45 - BEAUT 1957
|
||||
3:00 - EAT
|
||||
# See Africa/Nairobi.
|
||||
|
||||
# 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.
|
||||
|
@ -29,20 +29,19 @@
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2013-08-11):
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Another source occasionally used is Edward W. Whitman, World Time Differences,
|
||||
# Whitman Publishing Co, 2 Niagara Av, Ealing, London (undated), which
|
||||
@ -70,10 +69,11 @@
|
||||
# 3:30 IRST IRDT Iran
|
||||
# 4:00 GST Gulf*
|
||||
# 5:30 IST India
|
||||
# 7:00 ICT Indochina*
|
||||
# 7:00 ICT Indochina, most times and locations*
|
||||
# 7:00 WIB west Indonesia (Waktu Indonesia Barat)
|
||||
# 8:00 WITA central Indonesia (Waktu Indonesia Tengah)
|
||||
# 8:00 CST China
|
||||
# 8:00 IDT Indochina, 1943-45, 1947-55, 1960-75 (some locations)*
|
||||
# 8:00 JWST Western Standard Time (Japan, 1896/1937)*
|
||||
# 9:00 JCST Central Standard Time (Japan, 1896/1937)
|
||||
# 9:00 WIT east Indonesia (Waktu Indonesia Timur)
|
||||
@ -294,12 +294,8 @@ Zone Asia/Rangoon 6:24:40 - LMT 1880 # or Yangon
|
||||
6:30 - MMT # Myanmar Time
|
||||
|
||||
# Cambodia
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Asia/Phnom_Penh 6:59:40 - LMT 1906 Jun 9
|
||||
7:06:20 - SMT 1911 Mar 11 0:01 # Saigon MT?
|
||||
7:00 - ICT 1912 May
|
||||
8:00 - ICT 1931 May
|
||||
7:00 - ICT
|
||||
# See Asia/Bangkok.
|
||||
|
||||
|
||||
# China
|
||||
|
||||
@ -916,6 +912,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
|
||||
@ -1685,44 +1685,70 @@ Zone Asia/Bishkek 4:58:24 - LMT 1924 May 2
|
||||
# Korea (North and South)
|
||||
|
||||
# From Annie I. Bang (2006-07-10):
|
||||
# http://www.koreaherald.co.kr/SITE/data/html_dir/2006/07/10/200607100012.asp
|
||||
# The Ministry of Commerce, Industry and Energy has already
|
||||
# commissioned a research project [to reintroduce DST] and has said
|
||||
# the system may begin as early as 2008.... Korea ran a daylight
|
||||
# saving program from 1949-61 but stopped it during the 1950-53 Korean War.
|
||||
# http://www.koreaherald.com/view.php?ud=200607100012
|
||||
# Korea ran a daylight saving program from 1949-61 but stopped it
|
||||
# during the 1950-53 Korean War. The system was temporarily enforced
|
||||
# between 1987 and 1988 ...
|
||||
|
||||
# From Sanghyuk Jung (2014-10-29):
|
||||
# http://mm.icann.org/pipermail/tz/2014-October/021830.html
|
||||
# According to the Korean Wikipedia
|
||||
# http://ko.wikipedia.org/wiki/한국_표준시
|
||||
# [oldid=12896437 2014-09-04 08:03 UTC]
|
||||
# DST in Republic of Korea was as follows.... And I checked old
|
||||
# newspapers in Korean, all articles correspond with data in Wikipedia.
|
||||
# For example, the article in 1948 (Korean Language) proved that DST
|
||||
# started at June 1 in that year. For another example, the article in
|
||||
# 1988 said that DST started at 2:00 AM in that year.
|
||||
|
||||
# From Shanks & Pottenger:
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
Rule ROK 1960 only - May 15 0:00 1:00 D
|
||||
Rule ROK 1960 only - Sep 13 0:00 0 S
|
||||
Rule ROK 1987 1988 - May Sun>=8 0:00 1:00 D
|
||||
Rule ROK 1987 1988 - Oct Sun>=8 0:00 0 S
|
||||
Rule ROK 1948 only - Jun 1 0:00 1:00 D
|
||||
Rule ROK 1948 only - Sep 13 0:00 0 S
|
||||
Rule ROK 1949 only - Apr 3 0:00 1:00 D
|
||||
Rule ROK 1949 1951 - Sep Sun>=8 0:00 0 S
|
||||
Rule ROK 1950 only - Apr 1 0:00 1:00 D
|
||||
Rule ROK 1951 only - May 6 0:00 1:00 D
|
||||
Rule ROK 1955 only - May 5 0:00 1:00 D
|
||||
Rule ROK 1955 only - Sep 9 0:00 0 S
|
||||
Rule ROK 1956 only - May 20 0:00 1:00 D
|
||||
Rule ROK 1956 only - Sep 30 0:00 0 S
|
||||
Rule ROK 1957 1960 - May Sun>=1 0:00 1:00 D
|
||||
Rule ROK 1957 1960 - Sep Sun>=18 0:00 0 S
|
||||
Rule ROK 1987 1988 - May Sun>=8 2:00 1:00 D
|
||||
Rule ROK 1987 1988 - Oct Sun>=8 3:00 0 S
|
||||
|
||||
# From Paul Eggert (2014-07-01):
|
||||
# The following entries are from Shanks & Pottenger, except that I
|
||||
# guessed that time zone abbreviations through 1945 followed the same
|
||||
# From Paul Eggert (2014-10-30):
|
||||
# The Korean Wikipedia entry gives the following sources for UT offsets:
|
||||
#
|
||||
# 1908: Official Journal Article No. 3994 (Edict No. 5)
|
||||
# 1912: Governor-General of Korea Official Gazette Issue No. 367
|
||||
# (Announcement No. 338)
|
||||
# 1954: Presidential Decree No. 876 (1954-03-17)
|
||||
# 1961: Law No. 676 (1961-08-07)
|
||||
# 1987: Law No. 3919 (1986-12-31)
|
||||
#
|
||||
# The Wikipedia entry also has confusing information about a change
|
||||
# to UT+9 in April 1910, but then what would be the point of the later change
|
||||
# to UT+9 on 1912-01-01? Omit the 1910 change for now.
|
||||
#
|
||||
# I guessed that time zone abbreviations through 1945 followed the same
|
||||
# rules as discussed under Taiwan, with nominal switches from JST to KST
|
||||
# when the respective cities were taken over by the Allies after WWII.
|
||||
#
|
||||
# For Pyongyang we have no information; guess no changes since World War II.
|
||||
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Asia/Seoul 8:27:52 - LMT 1890
|
||||
8:30 - KST 1904 Dec
|
||||
9:00 - JCST 1928
|
||||
8:30 - KST 1932
|
||||
Zone Asia/Seoul 8:27:52 - LMT 1908 Apr 1
|
||||
8:30 - KST 1912 Jan 1
|
||||
9:00 - JCST 1937 Oct 1
|
||||
9:00 - JST 1945 Sep 8
|
||||
9:00 - KST 1954 Mar 21
|
||||
8:00 ROK K%sT 1961 Aug 10
|
||||
8:30 - KST 1968 Oct
|
||||
8:30 ROK K%sT 1961 Aug 10
|
||||
9:00 ROK K%sT
|
||||
Zone Asia/Pyongyang 8:23:00 - LMT 1890
|
||||
8:30 - KST 1904 Dec
|
||||
9:00 - JCST 1928
|
||||
8:30 - KST 1932
|
||||
Zone Asia/Pyongyang 8:23:00 - LMT 1908 Apr 1
|
||||
8:30 - KST 1912 Jan 1
|
||||
9:00 - JCST 1937 Oct 1
|
||||
9:00 - JST 1945 Aug 24
|
||||
9:00 - KST 1954 Mar 21
|
||||
8:00 - KST 1961 Aug 10
|
||||
9:00 - KST
|
||||
|
||||
###############################################################################
|
||||
@ -1733,12 +1759,8 @@ Zone Asia/Kuwait 3:11:56 - LMT 1950
|
||||
3:00 - AST
|
||||
|
||||
# Laos
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Asia/Vientiane 6:50:24 - LMT 1906 Jun 9 # or Viangchan
|
||||
7:06:20 - SMT 1911 Mar 11 0:01 # Saigon MT?
|
||||
7:00 - ICT 1912 May
|
||||
8:00 - ICT 1931 May
|
||||
7:00 - ICT
|
||||
# See Asia/Bangkok.
|
||||
|
||||
|
||||
# Lebanon
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
@ -2751,6 +2773,8 @@ Zone Asia/Dushanbe 4:35:12 - LMT 1924 May 2
|
||||
Zone Asia/Bangkok 6:42:04 - LMT 1880
|
||||
6:42:04 - BMT 1920 Apr # Bangkok Mean Time
|
||||
7:00 - ICT
|
||||
Link Asia/Bangkok Asia/Phnom_Penh # Cambodia
|
||||
Link Asia/Bangkok Asia/Vientiane # Laos
|
||||
|
||||
# Turkmenistan
|
||||
# From Shanks & Pottenger.
|
||||
@ -2788,22 +2812,65 @@ Zone Asia/Tashkent 4:37:11 - LMT 1924 May 2
|
||||
|
||||
# Vietnam
|
||||
|
||||
# From Paul Eggert (2013-02-21):
|
||||
# From Paul Eggert (2014-10-04):
|
||||
# Milne gives 7:16:56 for the meridian of Saigon in 1899, as being
|
||||
# used in Lower Laos, Cambodia, and Annam. But this is quite a ways
|
||||
# from Saigon's location. For now, ignore this and stick with Shanks
|
||||
# and Pottenger.
|
||||
# and Pottenger for LMT before 1906.
|
||||
|
||||
# From Arthur David Olson (2008-03-18):
|
||||
# The English-language name of Vietnam's most populous city is "Ho Chi Minh
|
||||
# City"; use Ho_Chi_Minh below to avoid a name of more than 14 characters.
|
||||
|
||||
# From Shanks & Pottenger:
|
||||
# From Paul Eggert (2014-10-21) after a heads-up from Trần Ngọc Quân:
|
||||
# Trần Tiến Bình's authoritative book "Lịch Việt Nam: thế kỷ XX-XXI (1901-2100)"
|
||||
# (Nhà xuất bản Văn Hoá - Thông Tin, Hanoi, 2005), pp 49-50,
|
||||
# is quoted verbatim in:
|
||||
# http://www.thoigian.com.vn/?mPage=P80D01
|
||||
# is translated by Brian Inglis in:
|
||||
# http://mm.icann.org/pipermail/tz/2014-October/021654.html
|
||||
# and is the basis for the information below.
|
||||
#
|
||||
# The 1906 transition was effective July 1 and standardized Indochina to
|
||||
# Phù Liễn Observatory, legally 104 deg. 17'17" east of Paris.
|
||||
# It's unclear whether this meant legal Paris Mean Time (00:09:21) or
|
||||
# the Paris Meridian (2 deg. 20'14.03" E); the former yields 07:06:30.1333...
|
||||
# and the latter 07:06:29.333... so either way it rounds to 07:06:30,
|
||||
# which is used below even though the modern-day Phù Liễn Observatory
|
||||
# is closer to 07:06:31. Abbreviate Phù Liễn Mean Time as PLMT.
|
||||
#
|
||||
# The following transitions occurred in Indochina in general (before 1954)
|
||||
# and in South Vietnam in particular (after 1954):
|
||||
# To 07:00 on 1911-05-01.
|
||||
# To 08:00 on 1942-12-31 at 23:00.
|
||||
# To 09:00 in 1945-03-14 at 23:00.
|
||||
# To 07:00 on 1945-09-02 in Vietnam.
|
||||
# To 08:00 on 1947-04-01 in French-controlled Indochina.
|
||||
# To 07:00 on 1955-07-01 in South Vietnam.
|
||||
# To 08:00 on 1959-12-31 at 23:00 in South Vietnam.
|
||||
# To 07:00 on 1975-06-13 in South Vietnam.
|
||||
#
|
||||
# Trần cites the following sources; it's unclear which supplied the info above.
|
||||
#
|
||||
# Hoàng Xuân Hãn: "Lịch và lịch Việt Nam". Tập san Khoa học Xã hội,
|
||||
# No. 9, Paris, February 1982.
|
||||
#
|
||||
# Lê Thành Lân: "Lịch và niên biểu lịch sử hai mươi thế kỷ (0001-2010)",
|
||||
# NXB Thống kê, Hanoi, 2000.
|
||||
#
|
||||
# Lê Thành Lân: "Lịch hai thế kỷ (1802-2010) và các lịch vĩnh cửu",
|
||||
# NXB Thuận Hoá, Huế, 1995.
|
||||
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Asia/Ho_Chi_Minh 7:06:40 - LMT 1906 Jun 9
|
||||
7:06:20 - SMT 1911 Mar 11 0:01 # Saigon MT?
|
||||
7:00 - ICT 1912 May
|
||||
8:00 - ICT 1931 May
|
||||
Zone Asia/Ho_Chi_Minh 7:06:40 - LMT 1906 Jul 1
|
||||
7:06:30 - PLMT 1911 May 1
|
||||
7:00 - ICT 1942 Dec 31 23:00
|
||||
8:00 - IDT 1945 Mar 14 23:00
|
||||
9:00 - JST 1945 Sep 2
|
||||
7:00 - ICT 1947 Apr 1
|
||||
8:00 - IDT 1955 Jul 1
|
||||
7:00 - ICT 1959 Dec 31 23:00
|
||||
8:00 - IDT 1975 Jun 13
|
||||
7:00 - ICT
|
||||
|
||||
# Yemen
|
||||
|
@ -354,20 +354,27 @@ Zone Indian/Cocos 6:27:40 - LMT 1900
|
||||
# Fiji will end DST on 2014-01-19 02:00:
|
||||
# http://www.fiji.gov.fj/Media-Center/Press-Releases/DAYLIGHT-SAVINGS-TO-END-THIS-MONTH-%281%29.aspx
|
||||
|
||||
# From Paul Eggert (2014-01-10):
|
||||
# For now, guess that Fiji springs forward the Sunday before the fourth
|
||||
# Monday in October, and springs back the penultimate Sunday in January.
|
||||
# This is ad hoc, but matches recent practice.
|
||||
# From Ken Rylander (2014-10-20):
|
||||
# DST will start Nov. 2 this year.
|
||||
# http://www.fiji.gov.fj/Media-Center/Press-Releases/DAYLIGHT-SAVING-STARTS-ON-SUNDAY,-NOVEMBER-2ND.aspx
|
||||
|
||||
# From Paul Eggert (2014-10-20):
|
||||
# For now, guess DST from 02:00 the first Sunday in November to
|
||||
# 03:00 the first Sunday on or after January 18. Although ad hoc, it
|
||||
# matches this year's plan and seems more likely to match future
|
||||
# practice than guessing no DST.
|
||||
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
Rule Fiji 1998 1999 - Nov Sun>=1 2:00 1:00 S
|
||||
Rule Fiji 1999 2000 - Feb lastSun 3:00 0 -
|
||||
Rule Fiji 2009 only - Nov 29 2:00 1:00 S
|
||||
Rule Fiji 2010 only - Mar lastSun 3:00 0 -
|
||||
Rule Fiji 2010 max - Oct Sun>=21 2:00 1:00 S
|
||||
Rule Fiji 2010 2013 - Oct Sun>=21 2:00 1:00 S
|
||||
Rule Fiji 2011 only - Mar Sun>=1 3:00 0 -
|
||||
Rule Fiji 2012 2013 - Jan Sun>=18 3:00 0 -
|
||||
Rule Fiji 2014 max - Jan Sun>=18 2:00 0 -
|
||||
Rule Fiji 2014 only - Jan Sun>=18 2:00 0 -
|
||||
Rule Fiji 2014 max - Nov Sun>=1 2:00 1:00 S
|
||||
Rule Fiji 2015 max - Jan Sun>=18 3:00 0 -
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Pacific/Fiji 11:55:44 - LMT 1915 Oct 26 # Suva
|
||||
12:00 Fiji FJ%sT # Fiji Time
|
||||
@ -542,6 +549,30 @@ Zone Pacific/Palau 8:57:56 - LMT 1901 # Koror
|
||||
Zone Pacific/Port_Moresby 9:48:40 - LMT 1880
|
||||
9:48:32 - PMMT 1895 # Port Moresby Mean Time
|
||||
10:00 - PGT # Papua New Guinea Time
|
||||
#
|
||||
# From Paul Eggert (2014-10-13):
|
||||
# Base the Bougainville entry on the Arawa-Kieta region, which appears to have
|
||||
# the most people even though it was devastated in the Bougainville Civil War.
|
||||
#
|
||||
# Although Shanks gives 1942-03-15 / 1943-11-01 for JST, these dates
|
||||
# are apparently rough guesswork from the starts of military campaigns.
|
||||
# The World War II entries below are instead based on Arawa-Kieta.
|
||||
# The Japanese occupied Kieta in July 1942,
|
||||
# according to the Pacific War Online Encyclopedia
|
||||
# http://pwencycl.kgbudge.com/B/o/Bougainville.htm
|
||||
# and seem to have controlled it until their 1945-08-21 surrender.
|
||||
#
|
||||
# The Autonomous Region of Bougainville plans to switch from UTC+10 to UTC+11
|
||||
# on 2014-12-28 at 02:00. They call UTC+11 "Bougainville Standard Time";
|
||||
# abbreviate this as BST. See:
|
||||
# http://www.bougainville24.com/bougainville-issues/bougainville-gets-own-timezone/
|
||||
#
|
||||
Zone Pacific/Bougainville 10:22:16 - LMT 1880
|
||||
9:48:32 - PMMT 1895
|
||||
10:00 - PGT 1942 Jul
|
||||
9:00 - JST 1945 Aug 21
|
||||
10:00 - PGT 2014 Dec 28 2:00
|
||||
11:00 - BST
|
||||
|
||||
# Pitcairn
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
@ -789,19 +820,19 @@ Zone Pacific/Wallis 12:15:20 - LMT 1901
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2013-02-21):
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Another source occasionally used is Edward W. Whitman, World Time Differences,
|
||||
# Whitman Publishing Co, 2 Niagara Av, Ealing, London (undated), which
|
||||
@ -826,6 +857,7 @@ Zone Pacific/Wallis 12:15:20 - LMT 1901
|
||||
# 10:00 AEST AEDT Eastern Australia
|
||||
# 10:00 ChST Chamorro
|
||||
# 10:30 LHST LHDT Lord Howe*
|
||||
# 11:00 BST Bougainville*
|
||||
# 11:30 NZMT NZST New Zealand through 1945
|
||||
# 12:00 NZST NZDT New Zealand 1946-present
|
||||
# 12:15 CHAST Chatham through 1945*
|
||||
|
@ -29,16 +29,19 @@
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2014-05-31):
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# A reliable and entertaining source about time zones is
|
||||
# Derek Howse, Greenwich time and longitude, Philip Wilson Publishers (1997).
|
||||
@ -91,10 +94,11 @@
|
||||
# 0:00 WET WEST WEMT Western Europe
|
||||
# 0:19:32.13 AMT NST Amsterdam, Netherlands Summer (1835-1937)*
|
||||
# 0:20 NET NEST Netherlands (1937-1940)*
|
||||
# 1:00 BST British Standard (1968-1971)
|
||||
# 1:00 CET CEST CEMT Central Europe
|
||||
# 1:00:14 SET Swedish (1879-1899)*
|
||||
# 2:00 EET EEST Eastern Europe
|
||||
# 3:00 FET Further-eastern Europe*
|
||||
# 3:00 FET Further-eastern Europe (2011-2014)*
|
||||
# 3:00 MSK MSD MSM* Moscow
|
||||
|
||||
# From Peter Ilieve (1994-12-04),
|
||||
@ -309,6 +313,14 @@
|
||||
# "Timeball on the ballast office is down. Dunsink time."
|
||||
# -- James Joyce, Ulysses
|
||||
|
||||
# "Countess Markievicz ... claimed that the [1916] abolition of Dublin Mean Time
|
||||
# was among various actions undertaken by the 'English' government that
|
||||
# would 'put the whole country into the SF (Sinn Féin) camp'. She claimed
|
||||
# Irish 'public feeling (was) outraged by forcing of English time on us'."
|
||||
# -- Parsons M. Dublin lost its time zone - and 25 minutes - after 1916 Rising.
|
||||
# Irish Times 2014-10-27.
|
||||
# http://www.irishtimes.com/news/politics/dublin-lost-its-time-zone-and-25-minutes-after-1916-rising-1.1977411
|
||||
|
||||
# From Joseph S. Myers (2005-01-26):
|
||||
# Irish laws are available online at <http://www.irishstatutebook.ie>.
|
||||
# These include various relating to legal time, for example:
|
||||
@ -616,6 +628,7 @@ Rule Russia 1992 only - Sep lastSat 23:00 0 -
|
||||
Rule Russia 1993 2010 - Mar lastSun 2:00s 1:00 S
|
||||
Rule Russia 1993 1995 - Sep lastSun 2:00s 0 -
|
||||
Rule Russia 1996 2010 - Oct lastSun 2:00s 0 -
|
||||
# As described below, Russia's 2014 change affects Zone data, not Rule data.
|
||||
|
||||
# From Alexander Krivenyshev (2011-06-14):
|
||||
# According to Kremlin press service, Russian President Dmitry Medvedev
|
||||
@ -746,6 +759,13 @@ Zone Europe/Vienna 1:05:21 - LMT 1893 Apr
|
||||
# http://www.belta.by/ru/all_news/society/V-Belarusi-otmenjaetsja-perexod-na-sezonnoe-vremja_i_572952.html
|
||||
# http://naviny.by/rubrics/society/2011/09/16/ic_articles_116_175144/
|
||||
# http://news.tut.by/society/250578.html
|
||||
#
|
||||
# From Alexander Bokovoy (2014-10-09):
|
||||
# Belarussian government decided against changing to winter time....
|
||||
# http://eng.belta.by/all_news/society/Belarus-decides-against-adjusting-time-in-Russias-wake_i_76335.html
|
||||
# From Paul Eggert (2014-10-08):
|
||||
# Hence Belarus can share time zone abbreviations with Moscow again.
|
||||
#
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Europe/Minsk 1:50:16 - LMT 1880
|
||||
1:50 - MMT 1924 May 2 # Minsk Mean Time
|
||||
@ -758,7 +778,8 @@ Zone Europe/Minsk 1:50:16 - LMT 1880
|
||||
2:00 - EET 1992 Mar 29 0:00s
|
||||
2:00 1:00 EEST 1992 Sep 27 0:00s
|
||||
2:00 Russia EE%sT 2011 Mar 27 2:00s
|
||||
3:00 - FET
|
||||
3:00 - FET 2014 Oct 26 1:00s
|
||||
3:00 - MSK
|
||||
|
||||
# Belgium
|
||||
#
|
||||
@ -2524,7 +2545,7 @@ Zone Asia/Novosibirsk 5:31:40 - LMT 1919 Dec 14 6:00
|
||||
# The Kemerovo region will remain at UTC+7 through the 2014-10-26 change, thus
|
||||
# realigning itself with KRAT.
|
||||
|
||||
Zone Asia/Novokuznetsk 5:48:48 - NMT 1920 Jan 6
|
||||
Zone Asia/Novokuznetsk 5:48:48 - LMT 1924 May 1
|
||||
6:00 - KRAT 1930 Jun 21 # Krasnoyarsk Time
|
||||
7:00 Russia KRA%sT 1991 Mar 31 2:00s
|
||||
6:00 Russia KRA%sT 1992 Jan 19 2:00s
|
||||
|
@ -33,8 +33,8 @@
|
||||
# The NTP Timescale and Leap Seconds
|
||||
# http://www.eecis.udel.edu/~mills/leap.html
|
||||
|
||||
# The International Earth Rotation Service periodically uses leap seconds
|
||||
# to keep UTC to within 0.9 s of UT1
|
||||
# The International Earth Rotation and Reference Systems Service
|
||||
# periodically uses leap seconds to keep UTC to within 0.9 s of UT1
|
||||
# (which measures the true angular orientation of the earth in space); see
|
||||
# Terry J Quinn, The BIPM and the accurate measure of time,
|
||||
# Proc IEEE 79, 7 (July 1991), 894-905 <http://dx.doi.org/10.1109/5.84965>.
|
||||
|
@ -300,6 +300,12 @@ Zone PST8PDT -8:00 US P%sT
|
||||
# time zone, but we do go by the Eastern time zone because so many people work
|
||||
# in Columbus."
|
||||
|
||||
# From Paul Eggert (2014-09-06):
|
||||
# Monthly Notices of the Royal Astronomical Society 44, 4 (1884-02-08), 208
|
||||
# says that New York City Hall time was 3 minutes 58.4 seconds fast of
|
||||
# Eastern time (i.e., -4:56:01.6) just before the 1883 switch. Round to the
|
||||
# nearest second.
|
||||
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER
|
||||
Rule NYC 1920 only - Mar lastSun 2:00 1:00 D
|
||||
Rule NYC 1920 only - Oct lastSun 2:00 0 S
|
||||
@ -1008,19 +1014,19 @@ Zone America/Menominee -5:50:27 - LMT 1885 Sep 18 12:00
|
||||
################################################################################
|
||||
|
||||
|
||||
# From Paul Eggert (2006-03-22):
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Other sources occasionally used include:
|
||||
#
|
||||
@ -1118,17 +1124,16 @@ Zone America/Menominee -5:50:27 - LMT 1885 Sep 18 12:00
|
||||
# An amendment to the Interpretation Act was registered on February 19/2007....
|
||||
# http://action.attavik.ca/home/justice-gn/attach/2007/gaz02part2.pdf
|
||||
|
||||
# From Paul Eggert (2006-04-25):
|
||||
# From Paul Eggert (2014-10-18):
|
||||
# H. David Matthews and Mary Vincent's map
|
||||
# "It's about TIME", _Canadian Geographic_ (September-October 1998)
|
||||
# http://www.canadiangeographic.ca/Magazine/SO98/geomap.asp
|
||||
# http://www.canadiangeographic.ca/Magazine/SO98/alacarte.asp
|
||||
# contains detailed boundaries for regions observing nonstandard
|
||||
# time and daylight saving time arrangements in Canada circa 1998.
|
||||
#
|
||||
# INMS, the Institute for National Measurement Standards in Ottawa, has
|
||||
# information about standard and daylight saving time zones in Canada.
|
||||
# http://inms-ienm.nrc-cnrc.gc.ca/en/time_services/daylight_saving_e.php
|
||||
# (updated periodically).
|
||||
# National Research Council Canada maintains info about time zones and DST.
|
||||
# http://www.nrc-cnrc.gc.ca/eng/services/time/time_zones.html
|
||||
# http://www.nrc-cnrc.gc.ca/eng/services/time/faq/index.html#Q5
|
||||
# Its unofficial information is often taken from Matthews and Vincent.
|
||||
|
||||
# From Paul Eggert (2006-06-27):
|
||||
@ -1993,10 +1998,7 @@ Zone America/Creston -7:46:04 - LMT 1884
|
||||
# [Also see <http://www.nunatsiaq.com/nunavut/nvt10309_06.html> (2001-03-09).]
|
||||
|
||||
# From Gwillim Law (2005-05-21):
|
||||
# According to maps at
|
||||
# http://inms-ienm.nrc-cnrc.gc.ca/images/time_services/TZ01SWE.jpg
|
||||
# http://inms-ienm.nrc-cnrc.gc.ca/images/time_services/TZ01SSE.jpg
|
||||
# (both dated 2003), and
|
||||
# According to ...
|
||||
# http://www.canadiangeographic.ca/Magazine/SO98/geomap.asp
|
||||
# (from a 1998 Canadian Geographic article), the de facto and de jure time
|
||||
# for Southampton Island (at the north end of Hudson Bay) is UTC-5 all year
|
||||
@ -2005,9 +2007,11 @@ Zone America/Creston -7:46:04 - LMT 1884
|
||||
# predates the creation of Nunavut, it probably goes back many years....
|
||||
# The Inuktitut name of Coral Harbour is Sallit, but it's rarely used.
|
||||
#
|
||||
# From Paul Eggert (2005-07-26):
|
||||
# From Paul Eggert (2014-10-17):
|
||||
# For lack of better information, assume that Southampton Island observed
|
||||
# daylight saving only during wartime.
|
||||
# daylight saving only during wartime. Gwillim Law's email also
|
||||
# mentioned maps now maintained by National Research Council Canada;
|
||||
# see above for an up-to-date link.
|
||||
|
||||
# From Chris Walton (2007-03-01):
|
||||
# ... the community of Resolute (located on Cornwallis Island in
|
||||
@ -3008,10 +3012,21 @@ Zone America/Tegucigalpa -5:48:52 - LMT 1921 Apr
|
||||
# Shanks & Pottenger give -5:07:12, but Milne records -5:07:10.41 from an
|
||||
# unspecified official document, and says "This time is used throughout the
|
||||
# island". Go with Milne. Round to the nearest second as required by zic.
|
||||
#
|
||||
# Shanks & Pottenger give April 28 for the 1974 spring-forward transition, but
|
||||
# Lance Neita writes that Prime Minister Michael Manley decreed it January 5.
|
||||
# Assume Neita meant Jan 6 02:00, the same as the US. Neita also writes that
|
||||
# Manley's supporters associated this act with Manley's nickname "Joshua"
|
||||
# (recall that in the Bible the sun stood still at Joshua's request),
|
||||
# and with the Rod of Correction which Manley said he had received from
|
||||
# Haile Selassie, Emperor of Ethiopia. See:
|
||||
# Neita L. The politician in all of us. Jamaica Observer 2014-09-20
|
||||
# http://www.jamaicaobserver.com/columns/The-politician-in-all-of-us_17573647
|
||||
#
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone America/Jamaica -5:07:11 - LMT 1890 # Kingston
|
||||
-5:07:11 - KMT 1912 Feb # Kingston Mean Time
|
||||
-5:00 - EST 1974 Apr 28 2:00
|
||||
-5:00 - EST 1974
|
||||
-5:00 US E%sT 1984
|
||||
-5:00 - EST
|
||||
|
||||
@ -3139,13 +3154,17 @@ Zone America/Miquelon -3:44:40 - LMT 1911 May 15 # St Pierre
|
||||
# From Paul Eggert (2014-08-19):
|
||||
# The 2014-08-13 Cabinet meeting decided to stay on UTC-4 year-round. See:
|
||||
# http://tcweeklynews.com/daylight-savings-time-to-be-maintained-p5353-127.htm
|
||||
# Model this as a switch from EST/EDT to AST on 2014-11-02 at 02:00.
|
||||
# Model this as a switch from EST/EDT to AST ...
|
||||
# From Chris Walton (2014-11-04):
|
||||
# ... the TCI government appears to have delayed the switch to
|
||||
# "permanent daylight saving time" by one year....
|
||||
# http://tcweeklynews.com/time-change-to-go-ahead-this-november-p5437-127.htm
|
||||
#
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone America/Grand_Turk -4:44:32 - LMT 1890
|
||||
-5:07:11 - KMT 1912 Feb # Kingston Mean Time
|
||||
-5:00 - EST 1979
|
||||
-5:00 US E%sT 2014 Nov 2 2:00
|
||||
-5:00 US E%sT 2015 Nov Sun>=1 2:00
|
||||
-4:00 - AST
|
||||
|
||||
# British Virgin Is
|
||||
|
@ -29,23 +29,23 @@
|
||||
# tz@iana.org for general use in the future). For more, please see
|
||||
# the file CONTRIBUTING in the tz distribution.
|
||||
|
||||
# From Paul Eggert (2006-03-22):
|
||||
# A good source for time zone historical data outside the U.S. is
|
||||
# From Paul Eggert (2014-10-31):
|
||||
#
|
||||
# Unless otherwise specified, the source for data through 1990 is:
|
||||
# Thomas G. Shanks and Rique Pottenger, The International Atlas (6th edition),
|
||||
# San Diego: ACS Publications, Inc. (2003).
|
||||
#
|
||||
# For data circa 1899, a common source is:
|
||||
# Milne J. Civil time. Geogr J. 1899 Feb;13(2):173-94.
|
||||
# http://www.jstor.org/stable/1774359
|
||||
# Unfortunately this book contains many errors and cites no sources.
|
||||
#
|
||||
# Gwillim Law writes that a good source
|
||||
# for recent time zone data is the International Air Transport
|
||||
# Association's Standard Schedules Information Manual (IATA SSIM),
|
||||
# published semiannually. Law sent in several helpful summaries
|
||||
# of the IATA's data after 1990.
|
||||
# of the IATA's data after 1990. Except where otherwise noted,
|
||||
# IATA SSIM is the source for entries after 1990.
|
||||
#
|
||||
# Except where otherwise noted, Shanks & Pottenger is the source for
|
||||
# entries through 1990, and IATA SSIM is the source for entries afterwards.
|
||||
# For data circa 1899, a common source is:
|
||||
# Milne J. Civil time. Geogr J. 1899 Feb;13(2):173-94.
|
||||
# http://www.jstor.org/stable/1774359
|
||||
#
|
||||
# Earlier editions of these tables used the North American style (e.g. ARST and
|
||||
# ARDT for Argentine Standard and Daylight Time), but the following quote
|
||||
|
@ -330,7 +330,8 @@ PE -1203-07703 America/Lima
|
||||
PF -1732-14934 Pacific/Tahiti Society Islands
|
||||
PF -0900-13930 Pacific/Marquesas Marquesas Islands
|
||||
PF -2308-13457 Pacific/Gambier Gambier Islands
|
||||
PG -0930+14710 Pacific/Port_Moresby
|
||||
PG -0930+14710 Pacific/Port_Moresby most locations
|
||||
PG -0613+15534 Pacific/Bougainville Bougainville
|
||||
PH +1435+12100 Asia/Manila
|
||||
PK +2452+06703 Asia/Karachi
|
||||
PL +5215+02100 Europe/Warsaw
|
||||
|
Loading…
x
Reference in New Issue
Block a user