Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
82f29877
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
82f29877
编写于
6月 01, 2016
作者:
R
rpatil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8151876: (tz) Support tzdata2016d
Reviewed-by: okutsu, coffeys
上级
7259014a
变更
23
展开全部
隐藏空白更改
内联
并排
Showing
23 changed file
with
1611 addition
and
848 deletion
+1611
-848
jdk/make/data/tzdata/VERSION
jdk/make/data/tzdata/VERSION
+1
-1
jdk/make/data/tzdata/asia
jdk/make/data/tzdata/asia
+242
-72
jdk/make/data/tzdata/australasia
jdk/make/data/tzdata/australasia
+8
-0
jdk/make/data/tzdata/europe
jdk/make/data/tzdata/europe
+329
-39
jdk/make/data/tzdata/iso3166.tab
jdk/make/data/tzdata/iso3166.tab
+3
-3
jdk/make/data/tzdata/leapseconds
jdk/make/data/tzdata/leapseconds
+3
-2
jdk/make/data/tzdata/northamerica
jdk/make/data/tzdata/northamerica
+24
-5
jdk/make/data/tzdata/southamerica
jdk/make/data/tzdata/southamerica
+37
-8
jdk/make/data/tzdata/zone.tab
jdk/make/data/tzdata/zone.tab
+148
-143
jdk/test/java/time/test/java/time/format/TestZoneTextPrinterParser.java
...time/test/java/time/format/TestZoneTextPrinterParser.java
+10
-2
jdk/test/java/util/TimeZone/Bug8149452.java
jdk/test/java/util/TimeZone/Bug8149452.java
+5
-2
jdk/test/java/util/TimeZone/CheckDisplayNames.java
jdk/test/java/util/TimeZone/CheckDisplayNames.java
+0
-296
jdk/test/java/util/TimeZone/TimeZoneTest.java
jdk/test/java/util/TimeZone/TimeZoneTest.java
+1
-1
jdk/test/sun/util/calendar/zi/TestZoneInfo310.java
jdk/test/sun/util/calendar/zi/TestZoneInfo310.java
+5
-1
jdk/test/sun/util/calendar/zi/tzdata/VERSION
jdk/test/sun/util/calendar/zi/tzdata/VERSION
+1
-1
jdk/test/sun/util/calendar/zi/tzdata/asia
jdk/test/sun/util/calendar/zi/tzdata/asia
+242
-72
jdk/test/sun/util/calendar/zi/tzdata/australasia
jdk/test/sun/util/calendar/zi/tzdata/australasia
+8
-0
jdk/test/sun/util/calendar/zi/tzdata/europe
jdk/test/sun/util/calendar/zi/tzdata/europe
+329
-39
jdk/test/sun/util/calendar/zi/tzdata/iso3166.tab
jdk/test/sun/util/calendar/zi/tzdata/iso3166.tab
+3
-3
jdk/test/sun/util/calendar/zi/tzdata/leapseconds
jdk/test/sun/util/calendar/zi/tzdata/leapseconds
+3
-2
jdk/test/sun/util/calendar/zi/tzdata/northamerica
jdk/test/sun/util/calendar/zi/tzdata/northamerica
+24
-5
jdk/test/sun/util/calendar/zi/tzdata/southamerica
jdk/test/sun/util/calendar/zi/tzdata/southamerica
+37
-8
jdk/test/sun/util/calendar/zi/tzdata/zone.tab
jdk/test/sun/util/calendar/zi/tzdata/zone.tab
+148
-143
未找到文件。
jdk/make/data/tzdata/VERSION
浏览文件 @
82f29877
...
...
@@ -21,4 +21,4 @@
# or visit www.oracle.com if you need additional information or have any
# questions.
#
tzdata2016
a
tzdata2016
d
jdk/make/data/tzdata/asia
浏览文件 @
82f29877
...
...
@@ -102,13 +102,9 @@ Rule E-EurAsia 1979 1995 - Sep lastSun 0:00 0 -
Rule E-EurAsia 1996 max - Oct lastSun 0:00 0 -
Rule RussiaAsia 1981 1984 - Apr 1 0:00 1:00 S
Rule RussiaAsia 1981 1983 - Oct 1 0:00 0 -
Rule RussiaAsia 1984 1991 - Sep lastSun 2:00s 0 -
Rule RussiaAsia 1985 1991 - Mar lastSun 2:00s 1:00 S
Rule RussiaAsia 1992 only - Mar lastSat 23:00 1:00 S
Rule RussiaAsia 1992 only - Sep lastSat 23:00 0 -
Rule RussiaAsia 1993 max - Mar lastSun 2:00s 1:00 S
Rule RussiaAsia 1993 1995 - Sep lastSun 2:00s 0 -
Rule RussiaAsia 1996 max - Oct lastSun 2:00s 0 -
Rule RussiaAsia 1984 1995 - Sep lastSun 2:00s 0 -
Rule RussiaAsia 1985 2011 - Mar lastSun 2:00s 1:00 S
Rule RussiaAsia 1996 2011 - Oct lastSun 2:00s 0 -
# Afghanistan
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
...
...
@@ -148,17 +144,26 @@ Zone Asia/Yerevan 2:58:00 - LMT 1924 May 2
3:00 1:00 YERST 1991 Sep 23 # independence
3:00 RussiaAsia AM%sT 1995 Sep 24 2:00s
4:00 - AMT 1997
4:00 RussiaAsia AM%sT 2012
Mar 25 2:00s
4:00 RussiaAsia AM%sT 2012
Feb 9
4:00 - AMT
# Azerbaijan
# From Rustam Aliyev of the Azerbaijan Internet Forum (2005-10-23):
# According to the resolution of Cabinet of Ministers, 1997
# From Paul Eggert (2015-09-17): It was Resolution No. 21 (1997-03-17).
# http://code.az/files/daylight_res.pdf
# From Steffen Thorsen (2016-03-17):
# ... the Azerbaijani Cabinet of Ministers has cancelled switching to
# daylight saving time....
# http://www.azernews.az/azerbaijan/94137.html
# http://vestnikkavkaza.net/news/Azerbaijani-Cabinet-of-Ministers-cancels-daylight-saving-time.html
# http://en.apa.az/xeber_azerbaijan_abolishes_daylight_savings_ti_240862.html
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Azer 1997
max
- Mar lastSun 4:00 1:00 S
Rule Azer 1997
max
- Oct lastSun 5:00 0 -
Rule Azer 1997
2015
- Mar lastSun 4:00 1:00 S
Rule Azer 1997
2015
- Oct lastSun 5:00 0 -
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Asia/Baku 3:19:24 - LMT 1924 May 2
3:00 - BAKT 1957 Mar # Baku Time
...
...
@@ -1581,23 +1586,6 @@ Zone Asia/Amman 2:23:44 - LMT 1931
# Kazakhstan
# From Paul Eggert (1996-11-22):
# Andrew Evtichov (1996-04-13) writes that Kazakhstan
# stayed in sync with Moscow after 1990, and that Aqtobe (formerly Aktyubinsk)
# and Aqtau (formerly Shevchenko) are the largest cities in their zones.
# Guess that Aqtau and Aqtobe diverged in 1995, since that's the first time
# IATA SSIM mentions a third time zone in Kazakhstan.
# From Paul Eggert (2006-03-22):
# German Iofis, ELSI, Almaty (2001-10-09) reports that Kazakhstan uses
# RussiaAsia rules, instead of switching at 00:00 as the IATA has it.
# Go with Shanks & Pottenger, who have them always using RussiaAsia rules.
# Also go with the following claims of Shanks & Pottenger:
#
# - Kazakhstan did not observe DST in 1991.
# - Qyzylorda switched from +5:00 to +6:00 on 1992-01-19 02:00.
# - Oral switched from +5:00 to +4:00 in spring 1989.
# From Kazakhstan Embassy's News Bulletin No. 11
# <http://www.kazsociety.org.uk/news/2005/03/30.htm> (2005-03-21):
# The Government of Kazakhstan passed a resolution March 15 abolishing
...
...
@@ -1614,61 +1602,232 @@ Zone Asia/Amman 2:23:44 - LMT 1931
# everything else.... I guess that would make Kazakhstan time zones
# de jure UTC+5 and UTC+6 respectively.
# From Stepan Golosunov (2016-03-27) ([*] means see later comments below):
# Review of the linked documents from http://adilet.zan.kz/
# produced the following data for post-1991 Kazakhstan:
#
# 0. Act of the Cabinet of Ministers of the USSR
# from 1991-02-04 No. 20
# http://pravo.gov.ru/proxy/ips/?docbody=&nd=102010545
# removed the extra hour ("decree time") on the territory of the USSR
# starting with the last Sunday of March 1991.
# It also allowed (but not mandated) Kazakh SSR, Kirghiz SSR, Tajik SSR,
# Turkmen SSR and Uzbek SSR to not have "summer" time.
#
# The 1992-01-13 act also refers to the act of the Cabinet of Ministers
# of the Kazakh SSR from 1991-03-20 No. 170 "About the act of the Cabinet
# of Ministers of the USSR from 1991-02-04 No. 20" but I didn't found its
# text.
#
# According to Izvestia newspaper No. 68 (23334) from 1991-03-20
# (page 6; available at http://libinfo.org/newsr/newsr2574.djvu via
# http://libinfo.org/index.php?id=58564) on 1991-03-31 at 2:00 during
# transition to "summer" time:
# Republic of Georgia, Latvian SSR, Lithuanian SSR, SSR Moldova,
# Estonian SSR; Komi ASSR; Kaliningrad oblast; Nenets autonomous okrug
# were to move clocks 1 hour forward.
# Kazakh SSR (excluding Uralsk oblast); Republic of Kyrgyzstan, Tajik
# SSR; Andijan, Jizzakh, Namangan, Sirdarya, Tashkent, Fergana oblasts
# of the Uzbek SSR were to move clocks 1 hour backwards.
# Other territories were to not move clocks.
# When the "summer" time would end on 1991-09-29, clocks were to be
# moved 1 hour backwards on the territory of the USSR excluding
# Kazakhstan, Kirghizia, Uzbekistan, Turkmenia, Tajikistan.
#
# Apparently there were last minute changes. Apparently Kazakh act No. 170
# was one of such changes.
#
# https://ru.wikipedia.org/wiki/Декретное время
# claims that Sovetskaya Rossiya newspaper on 1991-03-29 published that
# Nenets autonomous okrug, Komi and Kazakhstan (excluding Uralsk oblast)
# were to not move clocks and Uralsk oblast was to move clocks
# forward; on 1991-09-29 Kazakhstan was to move clocks backwards.
# (Probably there were changes even after that publication. There is an
# article claiming that Kaliningrad oblast decided on 1991-03-29 to not
# move clocks.)
#
# This implies that on 1991-03-31 Asia/Oral remained on +04/+05 while
# the rest of Kazakhstan switched from +06/+07 to +05/06 or from +05/06
# to +04/+05. It's unclear how Kzyl-Orda oblast moved into the fifth
# time belt. (By switching from +04/+05 to +05/+06 on 1991-09-29?) ...
#
# 1. Act of the Cabinet of Ministers of the Republic of Kazakhstan
# from 1992-01-13 No. 28
# http://adilet.zan.kz/rus/docs/P920000028_
# (text includes modification from the 1996 act)
# introduced new rules for calculation of time, mirroring Russian
# 1992-01-08 act. It specified that time would be calculated
# according to time belts plus extra hour ("decree time"), moved clocks
# on the whole territory of Kazakhstan 1 hour forward on 1992-01-19 at
# 2:00, specified DST rules. It acknowledged that Kazakhstan was
# located in the fourth and the fifth time belts and specified the
# border between them to be located east of Kustanay and Aktyubinsk
# oblasts (notably including Turgai and Kzyl-Orda oblasts into the fifth
# time belt).
#
# This means switch on 1992-01-19 at 2:00 from +04/+05 to +05/+06 for
# Asia/Aqtau, Asia/Aqtobe, Asia/Oral, Atyrau and Kustanay oblasts; from
# +05/+06 to +06/+07 for Asia/Almaty and Asia/Qyzylorda (and Arkalyk) [*]....
#
# 2. Act of the Cabinet of Ministers of the Republic of Kazakhstan
# from 1992-03-27 No. 284
# http://adilet.zan.kz/rus/docs/P920000284_
# cancels extra hour ("decree time") for Uralsk and Kzyl-Orda oblasts
# since the last Sunday of March 1992, while keeping them in the fourth
# and the fifth time belts respectively.
#
# 3. Order of the Prime Minister of the Republic of Kazakhstan
# from 1994-09-23 No. 384
# http://adilet.zan.kz/rus/docs/R940000384_
# cancels the extra hour ("decree time") on the territory of Mangystau
# oblast since the last Sunday of September 1994 (saying that time on
# the territory would correspond to the third time belt as a
# result)....
#
# 4. Act of the Government of the Republic of Kazakhstan
# from 1996-05-08 No. 575
# http://adilet.zan.kz/rus/docs/P960000575_
# amends the 1992-01-13 act to end summer time in October instead
# of September, mirroring identical Russian change from 1996-04-23 act.
#
# 5. Act of the Government of the Republic of Kazakhstan
# from 1999-03-26 No. 305
# http://adilet.zan.kz/rus/docs/P990000305_
# cancels the extra hour ("decree time") for Atyrau oblast since the
# last Sunday of March 1999 while retaining the oblast in the fourth
# time belt.
#
# This means change from +05/+06 to +04/+05.
#
# There is no zone for Atyrau currently (listed under Asia/Aqtau in
# zone1970.tab).[*]
#
# 6. Act of the Government of the Republic of Kazakhstan
# from 2000-11-23 No. 1749
# http://adilet.zan.kz/rus/archive/docs/P000001749_/23.11.2000
# replaces the previous five documents.
#
# The only changes I noticed are in definition of the border between the
# fourth and the fifth time belts. They account for changes in spelling
# and administrative division (splitting of Turgai oblast in 1997
# probably changed time in territories incorporated into Kostanay oblast
# (including Arkalyk) from +06/+07 to +05/+06) and move Kyzylorda oblast
# from being in the fifth time belt and not using decree time into the
# fourth time belt (no change in practice).[*]
#
# 7. Act of the Government of the Republic of Kazakhstan
# from 2003-12-29 No. 1342
# http://adilet.zan.kz/rus/docs/P030001342_
# modified the 2000-11-23 act. No relevant changes, apparently.
#
# 8. Act of the Government of the Republic of Kazakhstan
# from 2004-07-20 No. 775
# http://adilet.zan.kz/rus/archive/docs/P040000775_/20.07.2004
# modified the 2000-11-23 act to move Kostanay and Kyzylorda oblasts into
# the fifth time belt and add Aktobe oblast to the list of regions not
# using extra hour ("decree time"), leaving Kazakhstan with only 2 time
# zones (+04/+05 and +06/+07). The changes were to be implemented
# during DST transitions in 2004 and 2005 but the acts got radically
# amended before implementation happened.
#
# 9. Act of the Government of the Republic of Kazakhstan
# from 2004-09-15 No. 1059
# http://adilet.zan.kz/rus/docs/P040001059_
# modified the 2000-11-23 act to remove exceptions from the "decree time"
# (leaving Kazakhstan in +05/+06 and +06/+07 zones), amended the
# 2004-07-20 act to implement changes for Atyrau, West Kazakhstan,
# Kostanay, Kyzylorda and Mangystau oblasts by not moving clocks
# during the 2014 transition to "winter" time.
#
# This means transition from +04/+05 to +05/+06 for Atyrau oblast (no
# zone currently), Asia/Oral, Asia/Aqtau and transition from +05/+06 to
# +06/+07 for Kostanay oblast (Kostanay and Arkalyk, no zones currently)
# and Asia/Qyzylorda on 2004-10-31 at 3:00....[*]
#
# 10. Act of the Government of the Republic of Kazakhstan
# from 2005-03-15 No. 231
# http://adilet.zan.kz/rus/docs/P050000231_
# removes DST provisions from the 2000-11-23 act, removes most of the
# (already implemented) provisions from the 2004-07-20 and 2004-09-15
# acts, comes into effect 10 days after official publication.
# The only practical effect seems to be the abolition of the summer
# time.
#
# Unamended version of the act of the Government of the Russian Federation
# No. 23 from 1992-01-08 [See 'europe' file for details].
# Kazakh 1992-01-13 act appears to provide the same rules and 1992-03-27
# act was to be enacted on the last Sunday of March 1992.
# From Paul Eggert (2016-04-15):
# The tables below should reflect Stepan Golosunov's remarks above,
# except for the items marked "[*]" which I haven't gotten to yet.
# It looks like we will need new zones Asia/Atyrau and Asia/Qostanay
# to handle changes from 1992 through 2004 that we did not previously
# know about.
#
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
#
# Almaty (formerly Alma-Ata), representing most locations in Kazakhstan
# This includes KZ-AKM, KZ-ALA, KZ-ALM, KZ-AST, KZ-BAY, KZ-VOS, KZ-ZHA,
# KZ-KAR, KZ-SEV, KZ-PAV, and KZ-YUZ.
Zone Asia/Almaty 5:07:48 - LMT 1924 May 2 # or Alma-Ata
5:00 -
ALMT 1930 Jun 21 # Alma-Ata Time
6:00 RussiaAsia
ALM%sT 1991
6:00 - ALMT 1992
6:00 RussiaAsia
ALM%sT 2005 Mar 15
6:00 -
ALMT
# Qyzylorda (aka Kyzylorda, Kizilorda, Kzyl-Orda, etc.)
5:00 -
+05 1930 Jun 21
6:00 RussiaAsia
+06/+07 1991 Mar 31 2:00s
5:00 RussiaAsia +05/+06 1992 Jan 19 2:00s
6:00 RussiaAsia
+06/+07 2004 Oct 31 2:00s
6:00 -
+06
# Qyzylorda (aka Kyzylorda, Kizilorda, Kzyl-Orda, etc.)
(KZ-KZY)
Zone Asia/Qyzylorda 4:21:52 - LMT 1924 May 2
4:00 - KIZT 1930 Jun 21 # Kizilorda Time
5:00 - KIZT 1981 Apr 1
5:00 1:00 KIZST 1981 Oct 1
6:00 - KIZT 1982 Apr 1
5:00 RussiaAsia KIZ%sT 1991
5:00 - KIZT 1991 Dec 16 # independence
5:00 - QYZT 1992 Jan 19 2:00
6:00 RussiaAsia QYZ%sT 2005 Mar 15
6:00 - QYZT
# Aqtobe (aka Aktobe, formerly Aktyubinsk)
4:00 - +04 1930 Jun 21
5:00 - +05 1981 Apr 1
5:00 1:00 +06 1981 Oct 1
6:00 - +06 1982 Apr 1
5:00 RussiaAsia +05/+06 1991 Mar 31 2:00s
4:00 RussiaAsia +04/+05 1991 Sep 29 2:00s
5:00 RussiaAsia +05/+06 1992 Jan 19 2:00s
6:00 RussiaAsia +06/+07 1992 Mar 29 2:00s
5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s
6:00 - +06
# Aqtobe (aka Aktobe, formerly Aktyubinsk) (KZ-AKT)
Zone Asia/Aqtobe 3:48:40 - LMT 1924 May 2
4:00 - AKTT 1930 Jun 21 # Aktyubinsk Time
5:00 - AKTT 1981 Apr 1
5:00 1:00 AKTST 1981 Oct 1
6:00 - AKTT 1982 Apr 1
5:00 RussiaAsia AKT%sT 1991
5:00 - AKTT 1991 Dec 16 # independence
5:00 RussiaAsia AQT%sT 2005 Mar 15 # Aqtobe Time
5:00 - AQTT
# Mangghystau
4:00 - +04 1930 Jun 21
5:00 - +05 1981 Apr 1
5:00 1:00 +06 1981 Oct 1
6:00 - +06 1982 Apr 1
5:00 RussiaAsia +05/+06 1991 Mar 31 2:00s
4:00 RussiaAsia +04/+05 1992 Jan 19 2:00s
5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s
5:00 - +05
# Qostanay (KZ-KUS)
# Mangghystau (KZ-MAN)
# Aqtau was not founded until 1963, but it represents an inhabited region,
# so include time stamps before 1963.
Zone Asia/Aqtau 3:21:04 - LMT 1924 May 2
4:00 - FORT 1930 Jun 21 # Fort Shevchenko T
5:00 - FORT 1963
5:00 - SHET 1981 Oct 1 # Shevchenko Time
6:00 - SHET 1982 Apr 1
5:00 RussiaAsia SHE%sT 1991
5:00 - SHET 1991 Dec 16 # independence
5:00 RussiaAsia AQT%sT 1995 Mar lastSun 2:00 # Aqtau Time
4:00 RussiaAsia AQT%sT 2005 Mar 15
5:00 - AQTT
# West Kazakhstan
4:00 - +04 1930 Jun 21
5:00 - +05 1963
5:00 - +05 1981 Oct 1
6:00 - +06 1982 Apr 1
5:00 RussiaAsia +05/+06 1991 Mar 31 2:00s
4:00 RussiaAsia +04/+05 1992 Jan 19 2:00s
5:00 RussiaAsia +05/+06 1994 Sep 25 2:00s
4:00 RussiaAsia +04/+05 2004 Oct 31 2:00s
5:00 - +05
# West Kazakhstan (KZ-ZAP)
# From Paul Eggert (2016-03-18):
# The 1989 transition is from USSR act No. 227 (1989-03-14).
Zone Asia/Oral 3:25:24 - LMT 1924 May 2 # or Ural'sk
4:00 -
URAT 1930 Jun 21 # Ural'sk time
5:00 -
URAT
1981 Apr 1
5:00 1:00
URAST
1981 Oct 1
6:00 -
URAT
1982 Apr 1
5:00 RussiaAsia
URA%sT 1989 Mar 26 2:00
4:00 RussiaAsia
URA%sT 1991
4:00 - URAT 1991 Dec 16 # independence
4:00 RussiaAsia
ORA%sT 2005 Mar 15 # Oral Time
5:00 -
ORAT
4:00 -
+04 1930 Jun 21
5:00 -
+05
1981 Apr 1
5:00 1:00
+06
1981 Oct 1
6:00 -
+06
1982 Apr 1
5:00 RussiaAsia
+05/+06 1989 Mar 26 2:00s
4:00 RussiaAsia
+04/+05 1992 Jan 19 2:00s
5:00 RussiaAsia +05/+06 1992 Mar 29 2:00s
4:00 RussiaAsia
+04/+05 2004 Oct 31 2:00s
5:00 -
+05
# Kyrgyzstan (Kirgizstan)
# Transitions through 1991 are from Shanks & Pottenger.
...
...
@@ -2419,6 +2578,16 @@ Zone Asia/Karachi 4:28:12 - LMT 1907
# http://www.timeanddate.com/time/change/gaza-strip/gaza
# http://www.timeanddate.com/time/change/west-bank/hebron
# From Hannah Kreitem (2016-03-09):
# http://www.palestinecabinet.gov.ps/WebSite/ar/ViewDetails?ID=31728
# [Google translation]: "The Council also decided to start daylight
# saving in Palestine as of one o'clock on Saturday morning,
# 2016-03-26, to provide the clock 60 minutes ahead."
#
# From Paul Eggert (2016-03-12):
# Predict spring transitions on March's last Saturday at 01:00 from now on.
# Leave fall predictions alone for now.
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule EgyptAsia 1957 only - May 10 0:00 1:00 S
Rule EgyptAsia 1957 1958 - Oct 1 0:00 0 -
...
...
@@ -2447,7 +2616,8 @@ Rule Palestine 2012 2014 - Mar lastThu 24:00 1:00 S
Rule Palestine 2012 only - Sep 21 1:00 0 -
Rule Palestine 2013 only - Sep Fri>=21 0:00 0 -
Rule Palestine 2014 max - Oct Fri>=21 0:00 0 -
Rule Palestine 2015 max - Mar lastFri 24:00 1:00 S
Rule Palestine 2015 only - Mar lastFri 24:00 1:00 S
Rule Palestine 2016 max - Mar lastSat 1:00 1:00 S
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Asia/Gaza 2:17:52 - LMT 1900 Oct
...
...
jdk/make/data/tzdata/australasia
浏览文件 @
82f29877
...
...
@@ -83,6 +83,14 @@ Zone Australia/Eucla 8:35:28 - LMT 1895 Dec
# Hamilton is the largest, but there is also a Hamilton in Victoria,
# so use Lindeman.
#
# From J William Piggott (2016-02-20):
# There is no location named Holiday Islands in Queensland Australia; holiday
# islands is a colloquial term used globally. Hayman and Lindeman are at the
# north and south extremes of the Whitsunday Islands archipelago, and
# Hamilton is in between; it is reasonable to believe that this time zone
# applies to all of the Whitsundays.
# http://www.australia.gov.au/about-australia/australian-story/austn-islands
#
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule AQ 1971 only - Oct lastSun 2:00s 1:00 D
Rule AQ 1972 only - Feb lastSun 2:00s 0 S
...
...
jdk/make/data/tzdata/europe
浏览文件 @
82f29877
此差异已折叠。
点击以展开。
jdk/make/data/tzdata/iso3166.tab
浏览文件 @
82f29877
...
...
@@ -75,7 +75,7 @@ BL St Barthelemy
BM Bermuda
BN Brunei
BO Bolivia
BQ Caribbean N
etherlands
BQ Caribbean N
L
BR Brazil
BS Bahamas
BT Bhutan
...
...
@@ -186,7 +186,7 @@ MA Morocco
MC Monaco
MD Moldova
ME Montenegro
MF St Martin (French
part
)
MF St Martin (French)
MG Madagascar
MH Marshall Islands
MK Macedonia
...
...
@@ -256,7 +256,7 @@ SR Suriname
SS South Sudan
ST Sao Tome & Principe
SV El Salvador
SX St Maarten (Dutch
part
)
SX St Maarten (Dutch)
SY Syria
SZ Swaziland
TC Turks & Caicos Is
...
...
jdk/make/data/tzdata/leapseconds
浏览文件 @
82f29877
...
...
@@ -29,6 +29,7 @@
# leap-seconds.list file available from most NIST time servers.
# If the URL <ftp://time.nist.gov/pub/leap-seconds.list> does not work,
# you should be able to pick up leap-seconds.list from a secondary NIST server.
# See <http://tf.nist.gov/tf-cgi/servers.cgi> for a list of secondary servers.
# For more about leap-seconds.list, please see
# The NTP Timescale and Leap Seconds
# http://www.eecis.udel.edu/~mills/leap.html
...
...
@@ -79,5 +80,5 @@ Leap 2008 Dec 31 23:59:60 + S
Leap 2012 Jun 30 23:59:60 + S
Leap 2015 Jun 30 23:59:60 + S
# Updated through IERS Bulletin C5
0
# File expires on: 28
June
2016
# Updated through IERS Bulletin C5
1
# File expires on: 28
December
2016
jdk/make/data/tzdata/northamerica
浏览文件 @
82f29877
...
...
@@ -2498,13 +2498,22 @@ Zone America/Merida -5:58:28 - LMT 1922 Jan 1 0:01:32
-6:00 - CST 1981 Dec 23
-5:00 - EST 1982 Dec 2
-6:00 Mexico C%sT
# Coahuila, Durango, Nuevo León, Tamaulipas (near US border)
# Coahuila, Nuevo León, Tamaulipas (near US border)
# This includes the following municipalities:
# in Coahuila: Ocampo, Acuña, Zaragoza, Jiménez, Piedras Negras, Nava,
# Guerrero, Hidalgo.
# in Nuevo León: Anáhuac, Los Aldama.
# in Tamaulipas: Nuevo Laredo, Guerrero, Mier, Miguel Alemán, Camargo,
# Gustavo Díaz Ordaz, Reynosa, Río Bravo, Valle Hermoso, Matamoros.
# See: Inicia mañana Horario de Verano en zona fronteriza, El Universal,
# 2016-03-12
# http://www.eluniversal.com.mx/articulo/estados/2016/03/12/inicia-manana-horario-de-verano-en-zona-fronteriza
Zone America/Matamoros -6:40:00 - LMT 1921 Dec 31 23:20:00
-6:00 - CST 1988
-6:00 US C%sT 1989
-6:00 Mexico C%sT 2010
-6:00 US C%sT
#
Coahuila, Durango
, Nuevo León, Tamaulipas (away from US border)
#
Durango; Coahuila
, Nuevo León, Tamaulipas (away from US border)
Zone America/Monterrey -6:41:16 - LMT 1921 Dec 31 23:18:44
-6:00 - CST 1988
-6:00 US C%sT 1989
...
...
@@ -2520,6 +2529,9 @@ Zone America/Mexico_City -6:36:36 - LMT 1922 Jan 1 0:23:24
-6:00 - CST 2002 Feb 20
-6:00 Mexico C%sT
# Chihuahua (near US border)
# This includes the municipalities of Janos, Ascensión, Juárez, Guadalupe,
# Práxedis G Guerrero, Coyame del Sotol, Ojinaga, and Manuel Benavides.
# (See the 2016-03-12 El Universal source mentioned above.)
Zone America/Ojinaga -6:57:40 - LMT 1922 Jan 1 0:02:20
-7:00 - MST 1927 Jun 10 23:00
-6:00 - CST 1930 Nov 15
...
...
@@ -2607,7 +2619,7 @@ Zone America/Bahia_Banderas -7:01:00 - LMT 1921 Dec 31 23:59:00
-7:00 Mexico M%sT 2010 Apr 4 2:00
-6:00 Mexico C%sT
# Baja California
(near US border)
# Baja California
Zone America/Tijuana -7:48:04 - LMT 1922 Jan 1 0:11:56
-7:00 - MST 1924
-8:00 - PST 1927 Jun 10 23:00
...
...
@@ -3083,6 +3095,13 @@ Zone America/Guatemala -6:02:04 - LMT 1918 Oct 5
# http://radiovision2000haiti.net/public/haiti-avis-changement-dheure-dimanche/
# http://www.canalplushaiti.net/?p=6714
# From Steffen Thorsen (2016-03-12):
# Jean Antoine, editor of www.haiti-reference.com informed us that Haiti
# are not going on DST this year. Several other resources confirm this: ...
# http://www.radiotelevisioncaraibes.com/presse/heure_d_t_pas_de_changement_d_heure_pr_vu_pour_cet_ann_e.html
# http://www.vantbefinfo.com/changement-dheure-pas-pour-haiti/
# http://news.anmwe.com/haiti-lheure-nationale-ne-sera-ni-avancee-ni-reculee-cette-annee/
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Haiti 1983 only - May 8 0:00 1:00 D
Rule Haiti 1984 1987 - Apr lastSun 0:00 1:00 D
...
...
@@ -3093,8 +3112,8 @@ Rule Haiti 1988 1997 - Apr Sun>=1 1:00s 1:00 D
Rule Haiti 1988 1997 - Oct lastSun 1:00s 0 S
Rule Haiti 2005 2006 - Apr Sun>=1 0:00 1:00 D
Rule Haiti 2005 2006 - Oct lastSun 0:00 0 S
Rule Haiti 2012
max
- Mar Sun>=8 2:00 1:00 D
Rule Haiti 2012
max
- Nov Sun>=1 2:00 0 S
Rule Haiti 2012
2015
- Mar Sun>=8 2:00 1:00 D
Rule Haiti 2012
2015
- Nov Sun>=1 2:00 0 S
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone America/Port-au-Prince -4:49:20 - LMT 1890
-4:49 - PPMT 1917 Jan 24 12:00 # P-a-P MT
...
...
jdk/make/data/tzdata/southamerica
浏览文件 @
82f29877
...
...
@@ -1244,6 +1244,20 @@ Zone America/Rio_Branco -4:31:12 - LMT 1914
# From Paul Eggert (2015-03-03):
# For now, assume that the extension will persist indefinitely.
# From Juan Correa (2016-03-18):
# The decree regarding DST has been published in today's Official Gazette:
# http://www.diariooficial.interior.gob.cl/versiones-anteriores/do/20160318/
# http://www.leychile.cl/Navegar?idNorma=1088502
# It does consider the second Saturday of May and August as the dates
# for the transition; and it lists DST dates until 2019, but I think
# this scheme will stick.
#
# From Paul Eggert (2016-03-18):
# For now, assume the pattern holds for the indefinite future.
# The decree says transitions occur at 24:00; in practice this appears
# to mean 24:00 mainland time, not 24:00 local time, so that Easter
# Island is always two hours behind the mainland.
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Chile 1927 1931 - Sep 1 0:00 1:00 S
Rule Chile 1928 1932 - Apr 1 0:00 0 -
...
...
@@ -1275,8 +1289,10 @@ Rule Chile 2009 only - Mar Sun>=9 3:00u 0 -
Rule Chile 2010 only - Apr Sun>=1 3:00u 0 -
Rule Chile 2011 only - May Sun>=2 3:00u 0 -
Rule Chile 2011 only - Aug Sun>=16 4:00u 1:00 S
Rule Chile 2012 201
5
- Apr Sun>=23 3:00u 0 -
Rule Chile 2012 201
4
- Apr Sun>=23 3:00u 0 -
Rule Chile 2012 2014 - Sep Sun>=2 4:00u 1:00 S
Rule Chile 2016 max - May Sun>=9 3:00u 0 -
Rule Chile 2016 max - Aug Sun>=9 4:00u 1:00 S
# IATA SSIM anomalies: (1992-02) says 1992-03-14;
# (1996-09) says 1998-03-08. Ignore these.
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
...
...
@@ -1293,13 +1309,11 @@ Zone America/Santiago -4:42:46 - LMT 1890
-4:00 1:00 CLST 1946 Sep 1 # central Chile
-4:00 - CLT 1947 Apr 1
-5:00 - CLT 1947 May 21 23:00
-4:00 Chile CL%sT 2015 Apr 26 3:00u
-3:00 - CLT
-4:00 Chile CL%sT
Zone Pacific/Easter -7:17:28 - LMT 1890
-7:17:28 - EMT 1932 Sep # Easter Mean Time
-7:00 Chile EAS%sT 1982 Mar 14 3:00u # Easter Time
-6:00 Chile EAS%sT 2015 Apr 26 3:00u
-5:00 - EAST
-6:00 Chile EAS%sT
#
# Salas y Gómez Island is uninhabited.
# Other Chilean locations, including Juan Fernández Is, Desventuradas Is,
...
...
@@ -1321,8 +1335,7 @@ Zone Pacific/Easter -7:17:28 - LMT 1890
Zone Antarctica/Palmer 0 - zzz 1965
-4:00 Arg AR%sT 1969 Oct 5
-3:00 Arg AR%sT 1982 May
-4:00 Chile CL%sT 2015 Apr 26 3:00u
-3:00 - CLT
-4:00 Chile CL%sT
# Colombia
...
...
@@ -1765,9 +1778,25 @@ Zone America/Montevideo -3:44:44 - LMT 1898 Jun 28
# resolution publication)
# http://www.globovision.com/news.php?nid=72208
# From Alexander Krivenyshev (2016-04-15):
# https://actualidad.rt.com/actualidad/204758-venezuela-modificar-huso-horario-sequia-elnino
#
# From Paul Eggert (2016-04-15):
# Clocks advance 30 minutes on 2016-05-01 at 02:30. See:
# Barboza AD. Huso horario en Venezuela volverá a 4 horas menos con
# respecto al "Greenwich". Panorama 2016-04-15 12:20 -0430.
# http://www.panorama.com.ve/ciudad/Huso-horario-en-Venezuela-volvera-a-4-horas-menos-con-respecto-al-Greenwich-20160415-0032.html
#
# "'Venezuela's new time-zone: hours without light, hours without water,
# hours of presidential broadcasts, hours of lines," quipped comedian
# Jean Mary Curro ...". See: Cawthorne A, Kai D. Venezuela scraps
# half-hour time difference set by Chavez. Reuters 2016-04-15 14:50 -0400
# http://www.reuters.com/article/us-venezuela-timezone-idUSKCN0XC2BE
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone America/Caracas -4:27:44 - LMT 1890
-4:27:40 - CMT 1912 Feb 12 # Caracas Mean Time?
-4:30 - VET 1965 Jan 1 0:00 # Venezuela T.
-4:00 - VET 2007 Dec 9 3:00
-4:30 - VET
-4:30 - VET 2016 May 1 2:30
-4:00 - VET
jdk/make/data/tzdata/zone.tab
浏览文件 @
82f29877
此差异已折叠。
点击以展开。
jdk/test/java/time/test/java/time/format/TestZoneTextPrinterParser.java
浏览文件 @
82f29877
/*
* Copyright (c) 2012, 201
5
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 201
6
, 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
...
...
@@ -49,7 +49,7 @@ import org.testng.annotations.Test;
/*
* @test
* @bug 8081022
* @bug 8081022
8151876
* @key randomness
*/
...
...
@@ -84,6 +84,14 @@ public class TestZoneTextPrinterParser extends AbstractTestPrinterParser {
TimeZone
tz
=
TimeZone
.
getTimeZone
(
zid
);
boolean
isDST
=
tz
.
inDaylightTime
(
new
Date
(
zdt
.
toInstant
().
toEpochMilli
()));
for
(
Locale
locale
:
locales
)
{
String
longDisplayName
=
tz
.
getDisplayName
(
isDST
,
TimeZone
.
LONG
,
locale
);
String
shortDisplayName
=
tz
.
getDisplayName
(
isDST
,
TimeZone
.
SHORT
,
locale
);
if
((
longDisplayName
.
startsWith
(
"GMT+"
)
&&
shortDisplayName
.
startsWith
(
"GMT+"
))
||
(
longDisplayName
.
startsWith
(
"GMT-"
)
&&
shortDisplayName
.
startsWith
(
"GMT-"
)))
{
printText
(
locale
,
zdt
,
TextStyle
.
FULL
,
tz
,
tz
.
getID
());
printText
(
locale
,
zdt
,
TextStyle
.
SHORT
,
tz
,
tz
.
getID
());
continue
;
}
printText
(
locale
,
zdt
,
TextStyle
.
FULL
,
tz
,
tz
.
getDisplayName
(
isDST
,
TimeZone
.
LONG
,
locale
));
printText
(
locale
,
zdt
,
TextStyle
.
SHORT
,
tz
,
...
...
jdk/test/java/util/TimeZone/Bug8149452.java
浏览文件 @
82f29877
...
...
@@ -22,7 +22,7 @@
*/
/*
* @test
* @bug 8149452
* @bug 8149452
8151876
* @summary Check the missing time zone names.
*/
import
java.text.DateFormatSymbols
;
...
...
@@ -42,7 +42,10 @@ public class Bug8149452 {
if
(!
Arrays
.
stream
(
zoneStrings
)
.
anyMatch
(
zone
->
tzID
.
equalsIgnoreCase
(
zone
[
0
])))
{
// to ignore names for Etc/GMT[+-][0-9]+ which are not supported
if
(!
tzID
.
startsWith
(
"Etc/GMT"
)
&&
!
tzID
.
startsWith
(
"GMT"
))
{
// Also ignore the TimeZone DisplayNames with GMT[+-]:hh:mm
if
(!
tzID
.
startsWith
(
"Etc/GMT"
)
&&
!
tzID
.
startsWith
(
"GMT"
)
&&
!
TimeZone
.
getTimeZone
(
tzID
).
getDisplayName
().
startsWith
(
"GMT"
))
{
listNotFound
.
add
(
tzID
);
}
}
...
...
jdk/test/java/util/TimeZone/CheckDisplayNames.java
已删除
100644 → 0
浏览文件 @
7259014a
/*
* Copyright (c) 2002, 2016, 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 6405639 8008577
* @summary Validate timezone display names in
* src/java.base/share/classes/sun/util/resources/TimeZoneNames.java.
* @modules java.base/sun.util.resources
* @compile -XDignore.symbol.file CheckDisplayNames.java
* @run main/othervm -Djava.locale.providers=COMPAT,SPI CheckDisplayNames
*/
import
java.util.*
;
import
sun.util.resources.TimeZoneNames
;
/**
* CheckDisplayNames checks all available time zones in the Java run
* time environment and sees if those have their display names besides doing
* some other test cases. It outputs time zones that don't have display names
* if -source option is specified.
* <blockquote>
* <pre>
* Usage: java CheckDisplayNames [-source]
* -source ... produces source code for editing TimeZoneNames.java.
* </pre>
* </blockquote>
*/
public
class
CheckDisplayNames
{
private
static
boolean
err
=
false
;
private
static
boolean
src
=
false
;
private
static
Locale
[]
locales
=
Locale
.
getAvailableLocales
();
private
static
String
[]
zones
=
TimeZone
.
getAvailableIDs
();
private
static
String
[]
zones_118
=
{
"ACT"
,
"Australia/Darwin"
,
"AET"
,
"Australia/Sydney"
,
"AGT"
,
"America/Buenos_Aires"
,
"ART"
,
"Africa/Cairo"
,
"AST"
,
"America/Anchorage"
,
"BET"
,
"America/Sao_Paulo"
,
"BST"
,
"Asia/Dacca"
,
"CAT"
,
"Africa/Harare"
,
"CNT"
,
"America/St_Johns"
,
"CST"
,
"America/Chicago"
,
"CTT"
,
"Asia/Shanghai"
,
"EAT"
,
"Africa/Addis_Ababa"
,
"ECT"
,
"Europe/Paris"
,
// "EET", "Africa/Istanbul",
"EST"
,
"America/New_York"
,
"HST"
,
"Pacific/Honolulu"
,
"IET"
,
"America/Indiana/Indianapolis"
,
// Comment out for this test case fails as the result of L10N for hi_IN.
// "IST", "Asia/Calcutta",
"JST"
,
"Asia/Tokyo"
,
// "MET", "Asia/Tehran",
"MIT"
,
"Pacific/Apia"
,
"MST"
,
"America/Denver"
,
"NET"
,
"Asia/Yerevan"
,
"NST"
,
"Pacific/Auckland"
,
"PLT"
,
"Asia/Karachi"
,
"PNT"
,
"America/Phoenix"
,
"PRT"
,
"America/Puerto_Rico"
,
"PST"
,
"America/Los_Angeles"
,
"SST"
,
"Pacific/Guadalcanal"
,
"VST"
,
"Asia/Saigon"
,
};
public
static
void
main
(
String
[]
argv
)
{
Locale
reservedLocale
=
Locale
.
getDefault
();
try
{
if
(
argv
.
length
==
1
&&
"-source"
.
equals
(
argv
[
0
]))
{
src
=
true
;
}
testDisplayNames
();
testRAWoffsetAndDisplayNames
();
test118DisplayNames
();
if
(
err
)
{
throw
new
RuntimeException
(
"TimeZone display name validation failed."
);
}
else
{
System
.
out
.
println
(
"\nAll test passed.\nTotal number of valid TimeZone id is "
+
zones
.
length
);
}
}
finally
{
// restore the reserved locale
Locale
.
setDefault
(
reservedLocale
);
}
}
/*
* Checks if each timezone ID has display names. If it doesn't and
* "-source" option was specified, source code is generated.
*/
private
static
void
testDisplayNames
()
{
System
.
out
.
println
(
"Checking if each entry in TimeZoneNames is a valid TimeZone ID"
);
Locale
.
setDefault
(
Locale
.
US
);
Enumeration
data
=
new
TimeZoneNames
().
getKeys
();
while
(
data
.
hasMoreElements
())
{
String
name
=
(
String
)
data
.
nextElement
();
String
id
=
TimeZone
.
getTimeZone
(
name
).
getID
();
if
(!
name
.
equals
(
id
))
{
System
.
err
.
println
(
"\t"
+
name
+
" doesn't seem to be a valid TimeZone ID."
);
err
=
true
;
}
}
System
.
out
.
println
(
"Checking if each TimeZone ID has display names."
);
for
(
int
i
=
0
;
i
<
zones
.
length
;
i
++)
{
String
id
=
zones
[
i
];
if
(
id
!=
null
)
{
if
(
id
.
startsWith
(
"Etc/GMT"
))
{
continue
;
}
if
(
id
.
indexOf
(
"Riyadh8"
)
!=
-
1
)
{
continue
;
}
if
(
id
.
equals
(
"GMT0"
))
{
continue
;
}
}
TimeZone
tz
=
TimeZone
.
getTimeZone
(
id
);
String
name
=
tz
.
getDisplayName
();
if
(
name
==
null
||
name
.
startsWith
(
"GMT+"
)
||
name
.
startsWith
(
"GMT-"
))
{
if
(
src
)
{
System
.
out
.
println
(
"\t {\""
+
tz
.
getID
()
+
"\", "
+
"new String[] {\"Standard Time Name\", \"ST\",\n"
+
"\t\t\t\t\t\t\"Daylight Time Name\", \"DT\"}},"
);
}
else
{
System
.
err
.
println
(
"\t"
+
tz
.
getID
()
+
" doesn't seem to have display names"
);
err
=
true
;
}
}
}
}
/*
* Compares
* - raw DST offset
* - short display names in non-DST
* - short display names in DST
* - long display names in DST
* of two timezones whose long display names in non-DST are same.
* If one of these are different, there may be a bug.
*/
private
static
void
testRAWoffsetAndDisplayNames
()
{
System
.
out
.
println
(
"Checking if each entry in TimeZoneNames is a valid TimeZone ID"
);
HashMap
<
String
,
TimeZone
>
map
=
new
HashMap
<
String
,
TimeZone
>();
for
(
int
i
=
0
;
i
<
locales
.
length
;
i
++)
{
map
.
clear
();
for
(
int
j
=
0
;
j
<
zones
.
length
;
j
++)
{
TimeZone
tz1
=
TimeZone
.
getTimeZone
(
zones
[
j
]);
String
name
=
tz1
.
getDisplayName
(
false
,
TimeZone
.
LONG
,
locales
[
i
]);
if
(
map
.
containsKey
(
name
))
{
TimeZone
tz2
=
map
.
get
(
name
);
int
offset1
=
tz1
.
getRawOffset
();
int
offset2
=
tz2
.
getRawOffset
();
if
(
offset1
!=
offset2
)
{
System
.
err
.
println
(
"Two timezones which have the same long display name \""
+
name
+
"\" in non-DST have different DST offsets in "
+
locales
[
i
]
+
" locale.\n\tTimezone 1="
+
tz1
.
getID
()
+
"("
+
offset1
+
")\n\tTimezone 2="
+
tz2
.
getID
()
+
"("
+
offset2
+
")"
);
}
String
name1
=
tz1
.
getDisplayName
(
false
,
TimeZone
.
SHORT
,
locales
[
i
]);
String
name2
=
tz2
.
getDisplayName
(
false
,
TimeZone
.
SHORT
,
locales
[
i
]);
if
(!(
name1
.
equals
(
"GMT"
)
&&
name2
.
equals
(
"GMT"
))
&&
!(
name1
.
equals
(
"CET"
)
&&
name2
.
equals
(
"MET"
))
&&
!(
name1
.
equals
(
"MET"
)
&&
name2
.
equals
(
"CET"
)))
{
if
(!
name1
.
equals
(
name2
))
{
System
.
err
.
println
(
"Two timezones which have the same short display name \""
+
name
+
"\" in non-DST have different short display names in non-DST in "
+
locales
[
i
]
+
" locale.\n\tTimezone 1="
+
tz1
.
getID
()
+
"("
+
name1
+
")\n\tTimezone 2="
+
tz2
.
getID
()
+
"("
+
name2
+
")"
);
}
name1
=
tz1
.
getDisplayName
(
true
,
TimeZone
.
SHORT
,
locales
[
i
]);
name2
=
tz2
.
getDisplayName
(
true
,
TimeZone
.
SHORT
,
locales
[
i
]);
if
(!
name1
.
equals
(
name2
))
{
System
.
err
.
println
(
"Two timezones which have the same short display name \""
+
name
+
"\" in non-DST have different short display names in DST in "
+
locales
[
i
]
+
" locale.\n\tTimezone 1="
+
tz1
.
getID
()
+
"("
+
name1
+
")\n\tTimezone 2="
+
tz2
.
getID
()
+
"("
+
name2
+
")"
);
}
name1
=
tz1
.
getDisplayName
(
true
,
TimeZone
.
LONG
,
locales
[
i
]);
name2
=
tz2
.
getDisplayName
(
true
,
TimeZone
.
LONG
,
locales
[
i
]);
if
(!
name1
.
equals
(
name2
))
{
System
.
err
.
println
(
"Two timezones which have the same long display name \""
+
name
+
"\" in non-DST have different long display names in DST in "
+
locales
[
i
]
+
" locale.\n\tTimezone 1="
+
tz1
.
getID
()
+
"("
+
name1
+
")\n\tTimezone 2="
+
tz2
.
getID
()
+
"("
+
name2
+
")"
);
}
}
}
else
{
map
.
put
(
name
,
tz1
);
}
}
}
}
/*
* Compares three-letter timezones' display names with corresponding
* "popular" timezones.
*/
private
static
void
test118DisplayNames
()
{
System
.
out
.
println
(
"Checking compatibility of Java 1.1.X's three-letter timezones"
);
for
(
int
i
=
0
;
i
<
zones_118
.
length
;
i
+=
2
)
{
String
id_118
=
zones_118
[
i
];
String
id_later
=
zones_118
[
i
+
1
];
String
zone_118
,
zone_later
,
localename
;
TimeZone
tz_118
=
TimeZone
.
getTimeZone
(
id_118
);
TimeZone
tz_later
=
TimeZone
.
getTimeZone
(
id_later
);
for
(
int
j
=
0
;
j
<
locales
.
length
;
j
++)
{
localename
=
locales
[
j
].
toString
();
zone_118
=
tz_118
.
getDisplayName
(
false
,
TimeZone
.
SHORT
,
locales
[
j
]);
zone_later
=
tz_later
.
getDisplayName
(
false
,
TimeZone
.
SHORT
,
locales
[
j
]);
check
(
id_118
,
id_later
,
zone_118
,
zone_later
,
"short"
,
"non-DST"
,
localename
);
zone_118
=
tz_118
.
getDisplayName
(
true
,
TimeZone
.
SHORT
,
locales
[
j
]);
zone_later
=
tz_later
.
getDisplayName
(
true
,
TimeZone
.
SHORT
,
locales
[
j
]);
check
(
id_118
,
id_later
,
zone_118
,
zone_later
,
"short"
,
"DST"
,
localename
);
zone_118
=
tz_118
.
getDisplayName
(
false
,
TimeZone
.
LONG
,
locales
[
j
]);
zone_later
=
tz_later
.
getDisplayName
(
false
,
TimeZone
.
LONG
,
locales
[
j
]);
check
(
id_118
,
id_later
,
zone_118
,
zone_later
,
"long"
,
"non-DST"
,
localename
);
zone_118
=
tz_118
.
getDisplayName
(
true
,
TimeZone
.
LONG
,
locales
[
j
]);
zone_later
=
tz_later
.
getDisplayName
(
true
,
TimeZone
.
LONG
,
locales
[
j
]);
check
(
id_118
,
id_later
,
zone_118
,
zone_later
,
"long"
,
"DST"
,
localename
);
}
}
}
private
static
void
check
(
String
zoneID_118
,
String
zoneID_later
,
String
zonename_118
,
String
zonename_later
,
String
format
,
String
dst
,
String
loc
)
{
if
(!
zonename_118
.
equals
(
zonename_later
))
{
System
.
err
.
println
(
"JDK 118 TimeZone \""
+
zoneID_118
+
"\" has a different "
+
format
+
" display name from its equivalent timezone \""
+
zoneID_later
+
"\" in "
+
dst
+
" in "
+
loc
+
" locale."
);
System
.
err
.
println
(
" Got: "
+
zonename_118
+
", Expected: "
+
zonename_later
);
err
=
true
;
}
}
}
jdk/test/java/util/TimeZone/TimeZoneTest.java
浏览文件 @
82f29877
...
...
@@ -24,7 +24,7 @@
/*
* @test
* @bug 4028006 4044013 4096694 4107276 4107570 4112869 4130885 7039469 7126465 7158483
* 8008577 8077685 8098547 8133321 8138716 8148446
* 8008577 8077685 8098547 8133321 8138716 8148446
8151876
* @modules java.base/sun.util.resources
* @library /java/text/testlib
* @summary test TimeZone
...
...
jdk/test/sun/util/calendar/zi/TestZoneInfo310.java
浏览文件 @
82f29877
/*
* Copyright (c) 2012, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 201
6
, 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
...
...
@@ -164,6 +164,10 @@ public class TestZoneInfo310 {
}
for
(
String
zid
:
zids_new
)
{
if
(
zid
.
equals
(
"Asia/Oral"
)
||
zid
.
equals
(
"Asia/Qyzylorda"
))
{
// JDK-8157792 tracking this issue
continue
;
}
ZoneInfoOld
zi
=
toZoneInfoOld
(
TimeZone
.
getTimeZone
(
zid
));
ZoneInfoOld
ziOLD
=
(
ZoneInfoOld
)
ZoneInfoOld
.
getTimeZone
(
zid
);
if
(!
zi
.
equalsTo
(
ziOLD
))
{
...
...
jdk/test/sun/util/calendar/zi/tzdata/VERSION
浏览文件 @
82f29877
...
...
@@ -21,4 +21,4 @@
# or visit www.oracle.com if you need additional information or have any
# questions.
#
tzdata2016
a
tzdata2016
d
jdk/test/sun/util/calendar/zi/tzdata/asia
浏览文件 @
82f29877
...
...
@@ -102,13 +102,9 @@ Rule E-EurAsia 1979 1995 - Sep lastSun 0:00 0 -
Rule E-EurAsia 1996 max - Oct lastSun 0:00 0 -
Rule RussiaAsia 1981 1984 - Apr 1 0:00 1:00 S
Rule RussiaAsia 1981 1983 - Oct 1 0:00 0 -
Rule RussiaAsia 1984 1991 - Sep lastSun 2:00s 0 -
Rule RussiaAsia 1985 1991 - Mar lastSun 2:00s 1:00 S
Rule RussiaAsia 1992 only - Mar lastSat 23:00 1:00 S
Rule RussiaAsia 1992 only - Sep lastSat 23:00 0 -
Rule RussiaAsia 1993 max - Mar lastSun 2:00s 1:00 S
Rule RussiaAsia 1993 1995 - Sep lastSun 2:00s 0 -
Rule RussiaAsia 1996 max - Oct lastSun 2:00s 0 -
Rule RussiaAsia 1984 1995 - Sep lastSun 2:00s 0 -
Rule RussiaAsia 1985 2011 - Mar lastSun 2:00s 1:00 S
Rule RussiaAsia 1996 2011 - Oct lastSun 2:00s 0 -
# Afghanistan
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
...
...
@@ -148,17 +144,26 @@ Zone Asia/Yerevan 2:58:00 - LMT 1924 May 2
3:00 1:00 YERST 1991 Sep 23 # independence
3:00 RussiaAsia AM%sT 1995 Sep 24 2:00s
4:00 - AMT 1997
4:00 RussiaAsia AM%sT 2012
Mar 25 2:00s
4:00 RussiaAsia AM%sT 2012
Feb 9
4:00 - AMT
# Azerbaijan
# From Rustam Aliyev of the Azerbaijan Internet Forum (2005-10-23):
# According to the resolution of Cabinet of Ministers, 1997
# From Paul Eggert (2015-09-17): It was Resolution No. 21 (1997-03-17).
# http://code.az/files/daylight_res.pdf
# From Steffen Thorsen (2016-03-17):
# ... the Azerbaijani Cabinet of Ministers has cancelled switching to
# daylight saving time....
# http://www.azernews.az/azerbaijan/94137.html
# http://vestnikkavkaza.net/news/Azerbaijani-Cabinet-of-Ministers-cancels-daylight-saving-time.html
# http://en.apa.az/xeber_azerbaijan_abolishes_daylight_savings_ti_240862.html
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Azer 1997
max
- Mar lastSun 4:00 1:00 S
Rule Azer 1997
max
- Oct lastSun 5:00 0 -
Rule Azer 1997
2015
- Mar lastSun 4:00 1:00 S
Rule Azer 1997
2015
- Oct lastSun 5:00 0 -
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Asia/Baku 3:19:24 - LMT 1924 May 2
3:00 - BAKT 1957 Mar # Baku Time
...
...
@@ -1581,23 +1586,6 @@ Zone Asia/Amman 2:23:44 - LMT 1931
# Kazakhstan
# From Paul Eggert (1996-11-22):
# Andrew Evtichov (1996-04-13) writes that Kazakhstan
# stayed in sync with Moscow after 1990, and that Aqtobe (formerly Aktyubinsk)
# and Aqtau (formerly Shevchenko) are the largest cities in their zones.
# Guess that Aqtau and Aqtobe diverged in 1995, since that's the first time
# IATA SSIM mentions a third time zone in Kazakhstan.
# From Paul Eggert (2006-03-22):
# German Iofis, ELSI, Almaty (2001-10-09) reports that Kazakhstan uses
# RussiaAsia rules, instead of switching at 00:00 as the IATA has it.
# Go with Shanks & Pottenger, who have them always using RussiaAsia rules.
# Also go with the following claims of Shanks & Pottenger:
#
# - Kazakhstan did not observe DST in 1991.
# - Qyzylorda switched from +5:00 to +6:00 on 1992-01-19 02:00.
# - Oral switched from +5:00 to +4:00 in spring 1989.
# From Kazakhstan Embassy's News Bulletin No. 11
# <http://www.kazsociety.org.uk/news/2005/03/30.htm> (2005-03-21):
# The Government of Kazakhstan passed a resolution March 15 abolishing
...
...
@@ -1614,61 +1602,232 @@ Zone Asia/Amman 2:23:44 - LMT 1931
# everything else.... I guess that would make Kazakhstan time zones
# de jure UTC+5 and UTC+6 respectively.
# From Stepan Golosunov (2016-03-27) ([*] means see later comments below):
# Review of the linked documents from http://adilet.zan.kz/
# produced the following data for post-1991 Kazakhstan:
#
# 0. Act of the Cabinet of Ministers of the USSR
# from 1991-02-04 No. 20
# http://pravo.gov.ru/proxy/ips/?docbody=&nd=102010545
# removed the extra hour ("decree time") on the territory of the USSR
# starting with the last Sunday of March 1991.
# It also allowed (but not mandated) Kazakh SSR, Kirghiz SSR, Tajik SSR,
# Turkmen SSR and Uzbek SSR to not have "summer" time.
#
# The 1992-01-13 act also refers to the act of the Cabinet of Ministers
# of the Kazakh SSR from 1991-03-20 No. 170 "About the act of the Cabinet
# of Ministers of the USSR from 1991-02-04 No. 20" but I didn't found its
# text.
#
# According to Izvestia newspaper No. 68 (23334) from 1991-03-20
# (page 6; available at http://libinfo.org/newsr/newsr2574.djvu via
# http://libinfo.org/index.php?id=58564) on 1991-03-31 at 2:00 during
# transition to "summer" time:
# Republic of Georgia, Latvian SSR, Lithuanian SSR, SSR Moldova,
# Estonian SSR; Komi ASSR; Kaliningrad oblast; Nenets autonomous okrug
# were to move clocks 1 hour forward.
# Kazakh SSR (excluding Uralsk oblast); Republic of Kyrgyzstan, Tajik
# SSR; Andijan, Jizzakh, Namangan, Sirdarya, Tashkent, Fergana oblasts
# of the Uzbek SSR were to move clocks 1 hour backwards.
# Other territories were to not move clocks.
# When the "summer" time would end on 1991-09-29, clocks were to be
# moved 1 hour backwards on the territory of the USSR excluding
# Kazakhstan, Kirghizia, Uzbekistan, Turkmenia, Tajikistan.
#
# Apparently there were last minute changes. Apparently Kazakh act No. 170
# was one of such changes.
#
# https://ru.wikipedia.org/wiki/Декретное время
# claims that Sovetskaya Rossiya newspaper on 1991-03-29 published that
# Nenets autonomous okrug, Komi and Kazakhstan (excluding Uralsk oblast)
# were to not move clocks and Uralsk oblast was to move clocks
# forward; on 1991-09-29 Kazakhstan was to move clocks backwards.
# (Probably there were changes even after that publication. There is an
# article claiming that Kaliningrad oblast decided on 1991-03-29 to not
# move clocks.)
#
# This implies that on 1991-03-31 Asia/Oral remained on +04/+05 while
# the rest of Kazakhstan switched from +06/+07 to +05/06 or from +05/06
# to +04/+05. It's unclear how Kzyl-Orda oblast moved into the fifth
# time belt. (By switching from +04/+05 to +05/+06 on 1991-09-29?) ...
#
# 1. Act of the Cabinet of Ministers of the Republic of Kazakhstan
# from 1992-01-13 No. 28
# http://adilet.zan.kz/rus/docs/P920000028_
# (text includes modification from the 1996 act)
# introduced new rules for calculation of time, mirroring Russian
# 1992-01-08 act. It specified that time would be calculated
# according to time belts plus extra hour ("decree time"), moved clocks
# on the whole territory of Kazakhstan 1 hour forward on 1992-01-19 at
# 2:00, specified DST rules. It acknowledged that Kazakhstan was
# located in the fourth and the fifth time belts and specified the
# border between them to be located east of Kustanay and Aktyubinsk
# oblasts (notably including Turgai and Kzyl-Orda oblasts into the fifth
# time belt).
#
# This means switch on 1992-01-19 at 2:00 from +04/+05 to +05/+06 for
# Asia/Aqtau, Asia/Aqtobe, Asia/Oral, Atyrau and Kustanay oblasts; from
# +05/+06 to +06/+07 for Asia/Almaty and Asia/Qyzylorda (and Arkalyk) [*]....
#
# 2. Act of the Cabinet of Ministers of the Republic of Kazakhstan
# from 1992-03-27 No. 284
# http://adilet.zan.kz/rus/docs/P920000284_
# cancels extra hour ("decree time") for Uralsk and Kzyl-Orda oblasts
# since the last Sunday of March 1992, while keeping them in the fourth
# and the fifth time belts respectively.
#
# 3. Order of the Prime Minister of the Republic of Kazakhstan
# from 1994-09-23 No. 384
# http://adilet.zan.kz/rus/docs/R940000384_
# cancels the extra hour ("decree time") on the territory of Mangystau
# oblast since the last Sunday of September 1994 (saying that time on
# the territory would correspond to the third time belt as a
# result)....
#
# 4. Act of the Government of the Republic of Kazakhstan
# from 1996-05-08 No. 575
# http://adilet.zan.kz/rus/docs/P960000575_
# amends the 1992-01-13 act to end summer time in October instead
# of September, mirroring identical Russian change from 1996-04-23 act.
#
# 5. Act of the Government of the Republic of Kazakhstan
# from 1999-03-26 No. 305
# http://adilet.zan.kz/rus/docs/P990000305_
# cancels the extra hour ("decree time") for Atyrau oblast since the
# last Sunday of March 1999 while retaining the oblast in the fourth
# time belt.
#
# This means change from +05/+06 to +04/+05.
#
# There is no zone for Atyrau currently (listed under Asia/Aqtau in
# zone1970.tab).[*]
#
# 6. Act of the Government of the Republic of Kazakhstan
# from 2000-11-23 No. 1749
# http://adilet.zan.kz/rus/archive/docs/P000001749_/23.11.2000
# replaces the previous five documents.
#
# The only changes I noticed are in definition of the border between the
# fourth and the fifth time belts. They account for changes in spelling
# and administrative division (splitting of Turgai oblast in 1997
# probably changed time in territories incorporated into Kostanay oblast
# (including Arkalyk) from +06/+07 to +05/+06) and move Kyzylorda oblast
# from being in the fifth time belt and not using decree time into the
# fourth time belt (no change in practice).[*]
#
# 7. Act of the Government of the Republic of Kazakhstan
# from 2003-12-29 No. 1342
# http://adilet.zan.kz/rus/docs/P030001342_
# modified the 2000-11-23 act. No relevant changes, apparently.
#
# 8. Act of the Government of the Republic of Kazakhstan
# from 2004-07-20 No. 775
# http://adilet.zan.kz/rus/archive/docs/P040000775_/20.07.2004
# modified the 2000-11-23 act to move Kostanay and Kyzylorda oblasts into
# the fifth time belt and add Aktobe oblast to the list of regions not
# using extra hour ("decree time"), leaving Kazakhstan with only 2 time
# zones (+04/+05 and +06/+07). The changes were to be implemented
# during DST transitions in 2004 and 2005 but the acts got radically
# amended before implementation happened.
#
# 9. Act of the Government of the Republic of Kazakhstan
# from 2004-09-15 No. 1059
# http://adilet.zan.kz/rus/docs/P040001059_
# modified the 2000-11-23 act to remove exceptions from the "decree time"
# (leaving Kazakhstan in +05/+06 and +06/+07 zones), amended the
# 2004-07-20 act to implement changes for Atyrau, West Kazakhstan,
# Kostanay, Kyzylorda and Mangystau oblasts by not moving clocks
# during the 2014 transition to "winter" time.
#
# This means transition from +04/+05 to +05/+06 for Atyrau oblast (no
# zone currently), Asia/Oral, Asia/Aqtau and transition from +05/+06 to
# +06/+07 for Kostanay oblast (Kostanay and Arkalyk, no zones currently)
# and Asia/Qyzylorda on 2004-10-31 at 3:00....[*]
#
# 10. Act of the Government of the Republic of Kazakhstan
# from 2005-03-15 No. 231
# http://adilet.zan.kz/rus/docs/P050000231_
# removes DST provisions from the 2000-11-23 act, removes most of the
# (already implemented) provisions from the 2004-07-20 and 2004-09-15
# acts, comes into effect 10 days after official publication.
# The only practical effect seems to be the abolition of the summer
# time.
#
# Unamended version of the act of the Government of the Russian Federation
# No. 23 from 1992-01-08 [See 'europe' file for details].
# Kazakh 1992-01-13 act appears to provide the same rules and 1992-03-27
# act was to be enacted on the last Sunday of March 1992.
# From Paul Eggert (2016-04-15):
# The tables below should reflect Stepan Golosunov's remarks above,
# except for the items marked "[*]" which I haven't gotten to yet.
# It looks like we will need new zones Asia/Atyrau and Asia/Qostanay
# to handle changes from 1992 through 2004 that we did not previously
# know about.
#
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
#
# Almaty (formerly Alma-Ata), representing most locations in Kazakhstan
# This includes KZ-AKM, KZ-ALA, KZ-ALM, KZ-AST, KZ-BAY, KZ-VOS, KZ-ZHA,
# KZ-KAR, KZ-SEV, KZ-PAV, and KZ-YUZ.
Zone Asia/Almaty 5:07:48 - LMT 1924 May 2 # or Alma-Ata
5:00 -
ALMT 1930 Jun 21 # Alma-Ata Time
6:00 RussiaAsia
ALM%sT 1991
6:00 - ALMT 1992
6:00 RussiaAsia
ALM%sT 2005 Mar 15
6:00 -
ALMT
# Qyzylorda (aka Kyzylorda, Kizilorda, Kzyl-Orda, etc.)
5:00 -
+05 1930 Jun 21
6:00 RussiaAsia
+06/+07 1991 Mar 31 2:00s
5:00 RussiaAsia +05/+06 1992 Jan 19 2:00s
6:00 RussiaAsia
+06/+07 2004 Oct 31 2:00s
6:00 -
+06
# Qyzylorda (aka Kyzylorda, Kizilorda, Kzyl-Orda, etc.)
(KZ-KZY)
Zone Asia/Qyzylorda 4:21:52 - LMT 1924 May 2
4:00 - KIZT 1930 Jun 21 # Kizilorda Time
5:00 - KIZT 1981 Apr 1
5:00 1:00 KIZST 1981 Oct 1
6:00 - KIZT 1982 Apr 1
5:00 RussiaAsia KIZ%sT 1991
5:00 - KIZT 1991 Dec 16 # independence
5:00 - QYZT 1992 Jan 19 2:00
6:00 RussiaAsia QYZ%sT 2005 Mar 15
6:00 - QYZT
# Aqtobe (aka Aktobe, formerly Aktyubinsk)
4:00 - +04 1930 Jun 21
5:00 - +05 1981 Apr 1
5:00 1:00 +06 1981 Oct 1
6:00 - +06 1982 Apr 1
5:00 RussiaAsia +05/+06 1991 Mar 31 2:00s
4:00 RussiaAsia +04/+05 1991 Sep 29 2:00s
5:00 RussiaAsia +05/+06 1992 Jan 19 2:00s
6:00 RussiaAsia +06/+07 1992 Mar 29 2:00s
5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s
6:00 - +06
# Aqtobe (aka Aktobe, formerly Aktyubinsk) (KZ-AKT)
Zone Asia/Aqtobe 3:48:40 - LMT 1924 May 2
4:00 - AKTT 1930 Jun 21 # Aktyubinsk Time
5:00 - AKTT 1981 Apr 1
5:00 1:00 AKTST 1981 Oct 1
6:00 - AKTT 1982 Apr 1
5:00 RussiaAsia AKT%sT 1991
5:00 - AKTT 1991 Dec 16 # independence
5:00 RussiaAsia AQT%sT 2005 Mar 15 # Aqtobe Time
5:00 - AQTT
# Mangghystau
4:00 - +04 1930 Jun 21
5:00 - +05 1981 Apr 1
5:00 1:00 +06 1981 Oct 1
6:00 - +06 1982 Apr 1
5:00 RussiaAsia +05/+06 1991 Mar 31 2:00s
4:00 RussiaAsia +04/+05 1992 Jan 19 2:00s
5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s
5:00 - +05
# Qostanay (KZ-KUS)
# Mangghystau (KZ-MAN)
# Aqtau was not founded until 1963, but it represents an inhabited region,
# so include time stamps before 1963.
Zone Asia/Aqtau 3:21:04 - LMT 1924 May 2
4:00 - FORT 1930 Jun 21 # Fort Shevchenko T
5:00 - FORT 1963
5:00 - SHET 1981 Oct 1 # Shevchenko Time
6:00 - SHET 1982 Apr 1
5:00 RussiaAsia SHE%sT 1991
5:00 - SHET 1991 Dec 16 # independence
5:00 RussiaAsia AQT%sT 1995 Mar lastSun 2:00 # Aqtau Time
4:00 RussiaAsia AQT%sT 2005 Mar 15
5:00 - AQTT
# West Kazakhstan
4:00 - +04 1930 Jun 21
5:00 - +05 1963
5:00 - +05 1981 Oct 1
6:00 - +06 1982 Apr 1
5:00 RussiaAsia +05/+06 1991 Mar 31 2:00s
4:00 RussiaAsia +04/+05 1992 Jan 19 2:00s
5:00 RussiaAsia +05/+06 1994 Sep 25 2:00s
4:00 RussiaAsia +04/+05 2004 Oct 31 2:00s
5:00 - +05
# West Kazakhstan (KZ-ZAP)
# From Paul Eggert (2016-03-18):
# The 1989 transition is from USSR act No. 227 (1989-03-14).
Zone Asia/Oral 3:25:24 - LMT 1924 May 2 # or Ural'sk
4:00 -
URAT 1930 Jun 21 # Ural'sk time
5:00 -
URAT
1981 Apr 1
5:00 1:00
URAST
1981 Oct 1
6:00 -
URAT
1982 Apr 1
5:00 RussiaAsia
URA%sT 1989 Mar 26 2:00
4:00 RussiaAsia
URA%sT 1991
4:00 - URAT 1991 Dec 16 # independence
4:00 RussiaAsia
ORA%sT 2005 Mar 15 # Oral Time
5:00 -
ORAT
4:00 -
+04 1930 Jun 21
5:00 -
+05
1981 Apr 1
5:00 1:00
+06
1981 Oct 1
6:00 -
+06
1982 Apr 1
5:00 RussiaAsia
+05/+06 1989 Mar 26 2:00s
4:00 RussiaAsia
+04/+05 1992 Jan 19 2:00s
5:00 RussiaAsia +05/+06 1992 Mar 29 2:00s
4:00 RussiaAsia
+04/+05 2004 Oct 31 2:00s
5:00 -
+05
# Kyrgyzstan (Kirgizstan)
# Transitions through 1991 are from Shanks & Pottenger.
...
...
@@ -2419,6 +2578,16 @@ Zone Asia/Karachi 4:28:12 - LMT 1907
# http://www.timeanddate.com/time/change/gaza-strip/gaza
# http://www.timeanddate.com/time/change/west-bank/hebron
# From Hannah Kreitem (2016-03-09):
# http://www.palestinecabinet.gov.ps/WebSite/ar/ViewDetails?ID=31728
# [Google translation]: "The Council also decided to start daylight
# saving in Palestine as of one o'clock on Saturday morning,
# 2016-03-26, to provide the clock 60 minutes ahead."
#
# From Paul Eggert (2016-03-12):
# Predict spring transitions on March's last Saturday at 01:00 from now on.
# Leave fall predictions alone for now.
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule EgyptAsia 1957 only - May 10 0:00 1:00 S
Rule EgyptAsia 1957 1958 - Oct 1 0:00 0 -
...
...
@@ -2447,7 +2616,8 @@ Rule Palestine 2012 2014 - Mar lastThu 24:00 1:00 S
Rule Palestine 2012 only - Sep 21 1:00 0 -
Rule Palestine 2013 only - Sep Fri>=21 0:00 0 -
Rule Palestine 2014 max - Oct Fri>=21 0:00 0 -
Rule Palestine 2015 max - Mar lastFri 24:00 1:00 S
Rule Palestine 2015 only - Mar lastFri 24:00 1:00 S
Rule Palestine 2016 max - Mar lastSat 1:00 1:00 S
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Asia/Gaza 2:17:52 - LMT 1900 Oct
...
...
jdk/test/sun/util/calendar/zi/tzdata/australasia
浏览文件 @
82f29877
...
...
@@ -83,6 +83,14 @@ Zone Australia/Eucla 8:35:28 - LMT 1895 Dec
# Hamilton is the largest, but there is also a Hamilton in Victoria,
# so use Lindeman.
#
# From J William Piggott (2016-02-20):
# There is no location named Holiday Islands in Queensland Australia; holiday
# islands is a colloquial term used globally. Hayman and Lindeman are at the
# north and south extremes of the Whitsunday Islands archipelago, and
# Hamilton is in between; it is reasonable to believe that this time zone
# applies to all of the Whitsundays.
# http://www.australia.gov.au/about-australia/australian-story/austn-islands
#
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule AQ 1971 only - Oct lastSun 2:00s 1:00 D
Rule AQ 1972 only - Feb lastSun 2:00s 0 S
...
...
jdk/test/sun/util/calendar/zi/tzdata/europe
浏览文件 @
82f29877
此差异已折叠。
点击以展开。
jdk/test/sun/util/calendar/zi/tzdata/iso3166.tab
浏览文件 @
82f29877
...
...
@@ -75,7 +75,7 @@ BL St Barthelemy
BM Bermuda
BN Brunei
BO Bolivia
BQ Caribbean N
etherlands
BQ Caribbean N
L
BR Brazil
BS Bahamas
BT Bhutan
...
...
@@ -186,7 +186,7 @@ MA Morocco
MC Monaco
MD Moldova
ME Montenegro
MF St Martin (French
part
)
MF St Martin (French)
MG Madagascar
MH Marshall Islands
MK Macedonia
...
...
@@ -256,7 +256,7 @@ SR Suriname
SS South Sudan
ST Sao Tome & Principe
SV El Salvador
SX St Maarten (Dutch
part
)
SX St Maarten (Dutch)
SY Syria
SZ Swaziland
TC Turks & Caicos Is
...
...
jdk/test/sun/util/calendar/zi/tzdata/leapseconds
浏览文件 @
82f29877
...
...
@@ -29,6 +29,7 @@
# leap-seconds.list file available from most NIST time servers.
# If the URL <ftp://time.nist.gov/pub/leap-seconds.list> does not work,
# you should be able to pick up leap-seconds.list from a secondary NIST server.
# See <http://tf.nist.gov/tf-cgi/servers.cgi> for a list of secondary servers.
# For more about leap-seconds.list, please see
# The NTP Timescale and Leap Seconds
# http://www.eecis.udel.edu/~mills/leap.html
...
...
@@ -79,5 +80,5 @@ Leap 2008 Dec 31 23:59:60 + S
Leap 2012 Jun 30 23:59:60 + S
Leap 2015 Jun 30 23:59:60 + S
# Updated through IERS Bulletin C5
0
# File expires on: 28
June
2016
# Updated through IERS Bulletin C5
1
# File expires on: 28
December
2016
jdk/test/sun/util/calendar/zi/tzdata/northamerica
浏览文件 @
82f29877
...
...
@@ -2498,13 +2498,22 @@ Zone America/Merida -5:58:28 - LMT 1922 Jan 1 0:01:32
-6:00 - CST 1981 Dec 23
-5:00 - EST 1982 Dec 2
-6:00 Mexico C%sT
# Coahuila, Durango, Nuevo León, Tamaulipas (near US border)
# Coahuila, Nuevo León, Tamaulipas (near US border)
# This includes the following municipalities:
# in Coahuila: Ocampo, Acuña, Zaragoza, Jiménez, Piedras Negras, Nava,
# Guerrero, Hidalgo.
# in Nuevo León: Anáhuac, Los Aldama.
# in Tamaulipas: Nuevo Laredo, Guerrero, Mier, Miguel Alemán, Camargo,
# Gustavo Díaz Ordaz, Reynosa, Río Bravo, Valle Hermoso, Matamoros.
# See: Inicia mañana Horario de Verano en zona fronteriza, El Universal,
# 2016-03-12
# http://www.eluniversal.com.mx/articulo/estados/2016/03/12/inicia-manana-horario-de-verano-en-zona-fronteriza
Zone America/Matamoros -6:40:00 - LMT 1921 Dec 31 23:20:00
-6:00 - CST 1988
-6:00 US C%sT 1989
-6:00 Mexico C%sT 2010
-6:00 US C%sT
#
Coahuila, Durango
, Nuevo León, Tamaulipas (away from US border)
#
Durango; Coahuila
, Nuevo León, Tamaulipas (away from US border)
Zone America/Monterrey -6:41:16 - LMT 1921 Dec 31 23:18:44
-6:00 - CST 1988
-6:00 US C%sT 1989
...
...
@@ -2520,6 +2529,9 @@ Zone America/Mexico_City -6:36:36 - LMT 1922 Jan 1 0:23:24
-6:00 - CST 2002 Feb 20
-6:00 Mexico C%sT
# Chihuahua (near US border)
# This includes the municipalities of Janos, Ascensión, Juárez, Guadalupe,
# Práxedis G Guerrero, Coyame del Sotol, Ojinaga, and Manuel Benavides.
# (See the 2016-03-12 El Universal source mentioned above.)
Zone America/Ojinaga -6:57:40 - LMT 1922 Jan 1 0:02:20
-7:00 - MST 1927 Jun 10 23:00
-6:00 - CST 1930 Nov 15
...
...
@@ -2607,7 +2619,7 @@ Zone America/Bahia_Banderas -7:01:00 - LMT 1921 Dec 31 23:59:00
-7:00 Mexico M%sT 2010 Apr 4 2:00
-6:00 Mexico C%sT
# Baja California
(near US border)
# Baja California
Zone America/Tijuana -7:48:04 - LMT 1922 Jan 1 0:11:56
-7:00 - MST 1924
-8:00 - PST 1927 Jun 10 23:00
...
...
@@ -3083,6 +3095,13 @@ Zone America/Guatemala -6:02:04 - LMT 1918 Oct 5
# http://radiovision2000haiti.net/public/haiti-avis-changement-dheure-dimanche/
# http://www.canalplushaiti.net/?p=6714
# From Steffen Thorsen (2016-03-12):
# Jean Antoine, editor of www.haiti-reference.com informed us that Haiti
# are not going on DST this year. Several other resources confirm this: ...
# http://www.radiotelevisioncaraibes.com/presse/heure_d_t_pas_de_changement_d_heure_pr_vu_pour_cet_ann_e.html
# http://www.vantbefinfo.com/changement-dheure-pas-pour-haiti/
# http://news.anmwe.com/haiti-lheure-nationale-ne-sera-ni-avancee-ni-reculee-cette-annee/
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Haiti 1983 only - May 8 0:00 1:00 D
Rule Haiti 1984 1987 - Apr lastSun 0:00 1:00 D
...
...
@@ -3093,8 +3112,8 @@ Rule Haiti 1988 1997 - Apr Sun>=1 1:00s 1:00 D
Rule Haiti 1988 1997 - Oct lastSun 1:00s 0 S
Rule Haiti 2005 2006 - Apr Sun>=1 0:00 1:00 D
Rule Haiti 2005 2006 - Oct lastSun 0:00 0 S
Rule Haiti 2012
max
- Mar Sun>=8 2:00 1:00 D
Rule Haiti 2012
max
- Nov Sun>=1 2:00 0 S
Rule Haiti 2012
2015
- Mar Sun>=8 2:00 1:00 D
Rule Haiti 2012
2015
- Nov Sun>=1 2:00 0 S
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone America/Port-au-Prince -4:49:20 - LMT 1890
-4:49 - PPMT 1917 Jan 24 12:00 # P-a-P MT
...
...
jdk/test/sun/util/calendar/zi/tzdata/southamerica
浏览文件 @
82f29877
...
...
@@ -1244,6 +1244,20 @@ Zone America/Rio_Branco -4:31:12 - LMT 1914
# From Paul Eggert (2015-03-03):
# For now, assume that the extension will persist indefinitely.
# From Juan Correa (2016-03-18):
# The decree regarding DST has been published in today's Official Gazette:
# http://www.diariooficial.interior.gob.cl/versiones-anteriores/do/20160318/
# http://www.leychile.cl/Navegar?idNorma=1088502
# It does consider the second Saturday of May and August as the dates
# for the transition; and it lists DST dates until 2019, but I think
# this scheme will stick.
#
# From Paul Eggert (2016-03-18):
# For now, assume the pattern holds for the indefinite future.
# The decree says transitions occur at 24:00; in practice this appears
# to mean 24:00 mainland time, not 24:00 local time, so that Easter
# Island is always two hours behind the mainland.
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Chile 1927 1931 - Sep 1 0:00 1:00 S
Rule Chile 1928 1932 - Apr 1 0:00 0 -
...
...
@@ -1275,8 +1289,10 @@ Rule Chile 2009 only - Mar Sun>=9 3:00u 0 -
Rule Chile 2010 only - Apr Sun>=1 3:00u 0 -
Rule Chile 2011 only - May Sun>=2 3:00u 0 -
Rule Chile 2011 only - Aug Sun>=16 4:00u 1:00 S
Rule Chile 2012 201
5
- Apr Sun>=23 3:00u 0 -
Rule Chile 2012 201
4
- Apr Sun>=23 3:00u 0 -
Rule Chile 2012 2014 - Sep Sun>=2 4:00u 1:00 S
Rule Chile 2016 max - May Sun>=9 3:00u 0 -
Rule Chile 2016 max - Aug Sun>=9 4:00u 1:00 S
# IATA SSIM anomalies: (1992-02) says 1992-03-14;
# (1996-09) says 1998-03-08. Ignore these.
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
...
...
@@ -1293,13 +1309,11 @@ Zone America/Santiago -4:42:46 - LMT 1890
-4:00 1:00 CLST 1946 Sep 1 # central Chile
-4:00 - CLT 1947 Apr 1
-5:00 - CLT 1947 May 21 23:00
-4:00 Chile CL%sT 2015 Apr 26 3:00u
-3:00 - CLT
-4:00 Chile CL%sT
Zone Pacific/Easter -7:17:28 - LMT 1890
-7:17:28 - EMT 1932 Sep # Easter Mean Time
-7:00 Chile EAS%sT 1982 Mar 14 3:00u # Easter Time
-6:00 Chile EAS%sT 2015 Apr 26 3:00u
-5:00 - EAST
-6:00 Chile EAS%sT
#
# Salas y Gómez Island is uninhabited.
# Other Chilean locations, including Juan Fernández Is, Desventuradas Is,
...
...
@@ -1321,8 +1335,7 @@ Zone Pacific/Easter -7:17:28 - LMT 1890
Zone Antarctica/Palmer 0 - zzz 1965
-4:00 Arg AR%sT 1969 Oct 5
-3:00 Arg AR%sT 1982 May
-4:00 Chile CL%sT 2015 Apr 26 3:00u
-3:00 - CLT
-4:00 Chile CL%sT
# Colombia
...
...
@@ -1765,9 +1778,25 @@ Zone America/Montevideo -3:44:44 - LMT 1898 Jun 28
# resolution publication)
# http://www.globovision.com/news.php?nid=72208
# From Alexander Krivenyshev (2016-04-15):
# https://actualidad.rt.com/actualidad/204758-venezuela-modificar-huso-horario-sequia-elnino
#
# From Paul Eggert (2016-04-15):
# Clocks advance 30 minutes on 2016-05-01 at 02:30. See:
# Barboza AD. Huso horario en Venezuela volverá a 4 horas menos con
# respecto al "Greenwich". Panorama 2016-04-15 12:20 -0430.
# http://www.panorama.com.ve/ciudad/Huso-horario-en-Venezuela-volvera-a-4-horas-menos-con-respecto-al-Greenwich-20160415-0032.html
#
# "'Venezuela's new time-zone: hours without light, hours without water,
# hours of presidential broadcasts, hours of lines," quipped comedian
# Jean Mary Curro ...". See: Cawthorne A, Kai D. Venezuela scraps
# half-hour time difference set by Chavez. Reuters 2016-04-15 14:50 -0400
# http://www.reuters.com/article/us-venezuela-timezone-idUSKCN0XC2BE
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone America/Caracas -4:27:44 - LMT 1890
-4:27:40 - CMT 1912 Feb 12 # Caracas Mean Time?
-4:30 - VET 1965 Jan 1 0:00 # Venezuela T.
-4:00 - VET 2007 Dec 9 3:00
-4:30 - VET
-4:30 - VET 2016 May 1 2:30
-4:00 - VET
jdk/test/sun/util/calendar/zi/tzdata/zone.tab
浏览文件 @
82f29877
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录