Debian Codegraph @

net/sf/saxon/expr/number/NamedTimeZone.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.expr.number;
9
10 import net.sf.saxon.tree.util.FastStringBuffer;
11 import net.sf.saxon.value.DateTimeValue;
12
13 import java.util.*;
14
15 /**
16 * This class attempts to identify a timezone name, given the date (including the time zone offset)
17 * and the country. The process is heuristic: sometimes there is more than one timezone that matches
18 * this information, sometimes there is none, but the class simply does its best. This is in support
19 * of the XSLT format-date() function.
20 */
21 public class NamedTimeZone {
22
23 static Set<String> knownTimeZones = new HashSet<String>(50);
24 static HashMap<String, List<String>> idForCountry = new HashMap<String, List<String>>(50);
25 static List<String> worldTimeZones = new ArrayList<>(20);
26
27 static {
28 Collections.addAll(knownTimeZones, TimeZone.getAvailableIDs());
29 }
30
31 /**
32 * Register a timezone in use in a particular country. Note that some countries use multiple
33 * time zones
34 *
35 * @param country the two-character code for the country
36 * @param zoneId the Olsen timezone name for the timezone
37 */
38
39 static void tz(String country, String zoneId) {
40 List<String> list = idForCountry.get(country);
41 if (list == null) {
42 list = new ArrayList<String>(4);
43 }
44 list.add(zoneId);
45 idForCountry.put(country, list);
46 }
47
48 /**
49 * Register a timezone in use in a particular country, and mark it as a major world
50 * timezone so it is also recognized in other countries. Note that some countries use multiple
51 * time zones
52 *
53 * @param country the two-character code for the country
54 * @param zoneId the Olsen timezone name for the timezone
55 * @param major true if this is a major world timezone, meaning that its name is recognized
56 * by people outside its own country
57 */
58
59 static void tz(String country, String zoneId, boolean major) {
60 tz(country, zoneId);
61 if (major) {
62 worldTimeZones.add(zoneId);
63 }
64 }
65
66 static {
67
68 // The table starts with countries that use multiple timezones, then proceeds in alphabetical order
69
70 tz("us", "America/New_York", true);
71 tz("us", "America/Chicago", true);
72 tz("us", "America/Denver", true);
73 tz("us", "America/Los_Angeles", true);
74 tz("us", "America/Anchorage", true);
75 tz("us", "America/Halifax", true);
76 tz("us", "Pacific/Honolulu", true);
77
78 tz("ca", "Canada/Pacific");
79 tz("ca", "Canada/Mountain");
80 tz("ca", "Canada/Central");
81 tz("ca", "Canada/Eastern");
82 tz("ca", "Canada/Atlantic");
83
84 tz("au", "Australia/Sydney", true);
85 tz("au", "Australia/Darwin", true);
86 tz("au", "Australia/Perth", true);
87
88 tz("ru", "Europe/Moscow", true);
89 tz("ru", "Europe/Samara");
90 tz("ru", "Asia/Yekaterinburg");
91 tz("ru", "Asia/Novosibirsk");
92 tz("ru", "Asia/Krasnoyarsk");
93 tz("ru", "Asia/Irkutsk");
94 tz("ru", "Asia/Chita");
95 tz("ru", "Asia/Vladivostok");
96
97 tz("an", "Europe/Andorra");
98 tz("ae", "Asia/Abu_Dhabi");
99 tz("af", "Asia/Kabul");
100 tz("al", "Europe/Tirana");
101 tz("am", "Asia/Yerevan");
102 tz("ao", "Africa/Luanda");
103 tz("ar", "America/Buenos_Aires");
104 tz("as", "Pacific/Samoa");
105 tz("at", "Europe/Vienna");
106 tz("aw", "America/Aruba");
107 tz("az", "Asia/Baku");
108
109 tz("ba", "Europe/Sarajevo");
110 tz("bb", "America/Barbados");
111 tz("bd", "Asia/Dhaka");
112 tz("be", "Europe/Brussels", true);
113 tz("bf", "Africa/Ouagadougou");
114 tz("bg", "Europe/Sofia");
115 tz("bh", "Asia/Bahrain");
116 tz("bi", "Africa/Bujumbura");
117 tz("bm", "Atlantic/Bermuda");
118 tz("bn", "Asia/Brunei");
119 tz("bo", "America/La_Paz");
120 tz("br", "America/Sao_Paulo");
121 tz("bs", "America/Nassau");
122 tz("bw", "Gaborone");
123 tz("by", "Europe/Minsk");
124 tz("bz", "America/Belize");
125
126 tz("cd", "Africa/Kinshasa");
127 tz("ch", "Europe/Zurich");
128 tz("ci", "Africa/Abidjan");
129 tz("cl", "America/Santiago");
130 tz("cn", "Asia/Shanghai");
131 tz("co", "America/Bogota");
132 tz("cr", "America/Costa_Rica");
133 tz("cu", "America/Cuba");
134 tz("cv", "Atlantic/Cape_Verde");
135 tz("cy", "Asia/Nicosia");
136 tz("cz", "Europe/Prague");
137
138 tz("de", "Europe/Berlin");
139 tz("dj", "Africa/Djibouti");
140 tz("dk", "Europe/Copenhagen");
141 tz("do", "America/Santo_Domingo");
142 tz("dz", "Africa/Algiers");
143
144 tz("ec", "America/Quito");
145 tz("ee", "Europe/Tallinn");
146 tz("eg", "Africa/Cairo");
147 tz("er", "Africa/Asmara");
148 tz("es", "Europe/Madrid");
149
150 tz("fi", "Europe/Helsinki");
151 tz("fj", "Pacific/Fiji");
152 tz("fk", "America/Stanley");
153 tz("fr", "Europe/Paris");
154
155 tz("ga", "Africa/Libreville");
156 tz("gb", "Europe/London");
157 tz("gd", "America/Grenada");
158 tz("ge", "Asia/Tbilisi");
159 tz("gh", "Africa/Accra");
160 tz("gm", "Africa/Banjul");
161 tz("gn", "Africa/Conakry");
162 tz("gr", "Europe/Athens");
163 tz("gy", "America/Guyana");
164
165 tz("hk", "Asia/Hong_Kong");
166 tz("hn", "America/Tegucigalpa");
167 tz("hr", "Europe/Zagreb");
168 tz("ht", "America/Port-au-Prince");
169 tz("hu", "Europe/Budapest");
170
171 tz("id", "Asia/Jakarta");
172 tz("ie", "Europe/Dublin");
173 tz("il", "Asia/Tel_Aviv", true);
174 tz("in", "Asia/Calcutta", true);
175 tz("iq", "Asia/Baghdad");
176 tz("ir", "Asia/Tehran");
177 tz("is", "Atlantic/Reykjavik");
178 tz("it", "Europe/Rome");
179
180 tz("jm", "America/Jamaica");
181 tz("jo", "Asia/Amman");
182 tz("jp", "Asia/Tokyo", true);
183
184 tz("ke", "Africa/Nairobi");
185 tz("kg", "Asia/Bishkek");
186 tz("kh", "Asia/Phnom_Penh");
187 tz("kp", "Asia/Pyongyang");
188 tz("kr", "Asia/Seoul");
189 tz("kw", "Asia/Kuwait");
190
191 tz("lb", "Asia/Beirut");
192 tz("li", "Europe/Liechtenstein");
193 tz("lk", "Asia/Colombo");
194 tz("lr", "Africa/Monrovia");
195 tz("ls", "Africa/Maseru");
196 tz("lt", "Europe/Vilnius");
197 tz("lu", "Europe/Luxembourg");
198 tz("lv", "Europe/Riga");
199 tz("ly", "Africa/Tripoli");
200
201 tz("ma", "Africa/Rabat");
202 tz("mc", "Europe/Monaco");
203 tz("md", "Europe/Chisinau");
204 tz("mg", "Indian/Antananarivo");
205 tz("mk", "Europe/Skopje");
206 tz("ml", "Africa/Bamako");
207 tz("mm", "Asia/Rangoon");
208 tz("mn", "Asia/Ulaanbaatar");
209 tz("mo", "Asia/Macao");
210 tz("mq", "America/Martinique");
211 tz("mt", "Europe/Malta");
212 tz("mu", "Indian/Mauritius");
213 tz("mv", "Indian/Maldives");
214 tz("mw", "Africa/Lilongwe");
215 tz("mx", "America/Mexico_City");
216 tz("my", "Asia/Kuala_Lumpur");
217
218 tz("na", "Africa/Windhoek");
219 tz("ne", "Africa/Niamey");
220 tz("ng", "Africa/Lagos");
221 tz("ni", "America/Managua");
222 tz("nl", "Europe/Amsterdam");
223 tz("no", "Europe/Oslo");
224 tz("np", "Asia/Kathmandu");
225 tz("nz", "Pacific/Aukland");
226
227 tz("om", "Asia/Muscat");
228
229 tz("pa", "America/Panama");
230 tz("pe", "America/Lima");
231 tz("pg", "Pacific/Port_Moresby");
232 tz("ph", "Asia/Manila");
233 tz("pk", "Asia/Karachi");
234 tz("pl", "Europe/Warsaw");
235 tz("pr", "America/Puerto_Rico");
236 tz("pt", "Europe/Lisbon");
237 tz("py", "America/Asuncion");
238
239 tz("qa", "Asia/Qatar");
240
241 tz("ro", "Europe/Bucharest");
242 tz("rs", "Europe/Belgrade");
243
244 tz("rw", "Africa/Kigali");
245
246 tz("sa", "Asia/Riyadh");
247 tz("sd", "Africa/Khartoum");
248 tz("se", "Europe/Stockholm");
249 tz("sg", "Asia/Singapore");
250 tz("si", "Europe/Ljubljana");
251 tz("sk", "Europe/Bratislava");
252 tz("sl", "Africa/Freetown");
253 tz("so", "Africa/Mogadishu");
254 tz("sr", "America/Paramaribo");
255 tz("sv", "America/El_Salvador");
256 tz("sy", "Asia/Damascus");
257 tz("sz", "Africa/Mbabane");
258
259 tz("td", "Africa/Ndjamena");
260 tz("tg", "Africa/Lome");
261 tz("th", "Asia/Bangkok");
262 tz("tj", "Asia/Dushanbe");
263 tz("tm", "Asia/Ashgabat");
264 tz("tn", "Africa/Tunis");
265 tz("to", "Pacific/Tongatapu");
266 tz("tr", "Asia/Istanbul");
267 tz("tw", "Asia/Taipei");
268 tz("tz", "Africa/Dar_es_Salaam");
269
270 tz("ua", "Europe/Kiev");
271 tz("ug", "Africa/Kampala");
272 tz("uk", "Europe/London", true);
273 tz("uy", "America/Montevideo");
274 tz("uz", "Asia/Tashkent");
275
276 tz("ve", "America/Caracas");
277 tz("vn", "Asia/Hanoi");
278
279 tz("za", "Africa/Johannesburg");
280 tz("zm", "Africa/Lusaka");
281 tz("zw", "Africa/Harare");
282
283
284 }
285
286 /**
287 * Try to identify a timezone name corresponding to a given date (including time zone)
288 * and a given country. Note that this takes account of Java's calendar of daylight savings time
289 * changes in different countries. The returned value is the convenional short timezone name, for example
290 * PDT for Pacific Daylight Time
291 *
292 * @param date the dateTimeValue, including timezone
293 * @param place either a two-letter ISO country code or an Olson timezone name
294 * @return the short timezone name if a timezone with the given time displacement is in use in the country
295 * in question (on the appropriate date, if known). Otherwise, the formatted (numeric) timezone offset. If
296 * the dateTimeValue supplied has no timezone, return a zero-length string.
297 */
298
299 public static String getTimeZoneNameForDate(DateTimeValue date, /*@Nullable*/ String place) {
300 if (!date.hasTimezone()) {
301 return "";
302 }
303 if (place == null) {
304 return formatTimeZoneOffset(date);
305 }
306 TimeZone zone = null;
307 List<String> possibleZones;
308 int tzMinutes = date.getTimezoneInMinutes();
309 if (place.contains("/")) {
310 zone = getNamedTimeZone(place);
311 //possibleZones = new ArrayList<String>(1);
312 //possibleZones.add(place);
313 } else {
314 possibleZones = idForCountry.get(place.toLowerCase());
315 if (possibleZones == null) {
316 possibleZones = new ArrayList<>();
317 }
318 long epochDate = date.getCalendar().getTime().getTime();
319 for (String z : possibleZones) {
320 TimeZone tz = TimeZone.getTimeZone(z);
321 if (tz != null && tz.getOffset(epochDate) == tzMinutes * 60000) {
322 zone = tz;
323 break;
324 }
325 }
326 if (zone == null) {
327 for (String z : worldTimeZones) {
328 TimeZone tz = TimeZone.getTimeZone(z);
329 if (tz != null && tz.getOffset(epochDate) == tzMinutes * 60000) {
330 zone = tz;
331 break;
332 }
333 }
334 }
335 if (zone == null) {
336 return formatTimeZoneOffset(date);
337 }
338 }
339 Date javaDate;
340 try {
341 javaDate = date.getCalendar().getTime();
342 } catch (IllegalArgumentException e) {
343 // this happens with timezones that are allowed in XPath but not in Java, especially on JDK 1.4
344 return formatTimeZoneOffset(date);
345 }
346 boolean inSummerTime = zone != null && zone.inDaylightTime(javaDate);
347 return zone.getDisplayName(inSummerTime, TimeZone.SHORT);
348 // for (String possibleZone : possibleZones) {
349 // TimeZone possibleTimeZone = TimeZone.getTimeZone(possibleZone);
350 // int offset = possibleTimeZone.getOffset(javaDate.getTime());
351 // if (offset == tzMinutes * 60000) {
352 // return possibleTimeZone.getDisplayName(inSummerTime, TimeZone.SHORT);
353 // }
354 // }
355 // return formatTimeZoneOffset(date);
356 }
357
358 /**
359 * Format a timezone in numeric form for example +03:00 (or Z for +00:00)
360 *
361 * @param timeValue the value whose timezone is to be formatted
362 * @return the formatted timezone
363 */
364
365 public static String formatTimeZoneOffset(DateTimeValue timeValue) {
366 FastStringBuffer sb = new FastStringBuffer(FastStringBuffer.C16);
367 DateTimeValue.appendTimezone(timeValue.getTimezoneInMinutes(), sb);
368 return sb.toString();
369 }
370
371 /**
372 * Try to identify a timezone name corresponding to a given date (including time zone)
373 * and a given country. Note that this takes account of Java's calendar of daylight savings time
374 * changes in different countries. The returned value is the Olsen time zone name, for example
375 * "Pacific/Los_Angeles", followed by an asterisk (*) if the time is in daylight savings time in that
376 * timezone.
377 *
378 * @param date the dateTimeValue, including timezone
379 * @param country the country, as a two-letter code
380 * @return the Olsen timezone name if a timezone with the given time displacement is in use in the country
381 * in question (on the appropriate date, if known). In this case an asterisk is appended to the result if the
382 * date/time is in daylight savings time. Otherwise, the formatted (numeric) timezone offset. If
383 * the dateTimeValue supplied has no timezone, return a zero-length string.
384 */
385
386 public static String getOlsenTimeZoneName(DateTimeValue date, String country) {
387 if (!date.hasTimezone()) {
388 return "";
389 }
390 List<String> possibleIds = idForCountry.get(country.toLowerCase());
391 String exampleId;
392 if (possibleIds == null) {
393 return formatTimeZoneOffset(date);
394 } else {
395 exampleId = possibleIds.get(0);
396 }
397 TimeZone exampleZone = TimeZone.getTimeZone(exampleId);
398 Date javaDate = date.getCalendar().getTime();
399 boolean inSummerTime = exampleZone.inDaylightTime(javaDate);
400 int tzMinutes = date.getTimezoneInMinutes();
401 for (int i = 0; i < possibleIds.size(); i++) {
402 String olsen = possibleIds.get(i);
403 TimeZone possibleTimeZone = TimeZone.getTimeZone(olsen);
404 int offset = possibleTimeZone.getOffset(javaDate.getTime());
405 if (offset == tzMinutes * 60000) {
406 return inSummerTime ? olsen + "*" : olsen;
407 }
408 }
409 return formatTimeZoneOffset(date);
410 }
411
412 /**
413 * Determine whether a given date/time is in summer time (daylight savings time)
414 * in a given region. This relies on the Java database of changes to daylight savings time.
415 * Since summer time changes are set by civil authorities the information is not necessarily
416 * reliable when applied to dates in the future.
417 *
418 * @param date the date/time in question
419 * @param region either the two-letter ISO country code, or an Olsen timezone name such as
420 * "America/New_York" or "Europe/Lisbon". If the country code denotes a country spanning several
421 * timezones, such as the US, then one of them is chosen arbitrarily.
422 * @return true if the date/time is known to be in summer time in the relevant country;
423 * false if it is known not to be in summer time; null if there is no timezone or if no
424 * information is available for the specified region.
425 */
426
427 public static Boolean inSummerTime(DateTimeValue date, String region) {
428 String olsenName;
429 if (region.length() == 2) {
430 List<String> possibleIds = idForCountry.get(region.toLowerCase());
431 if (possibleIds == null) {
432 return null;
433 } else {
434 olsenName = possibleIds.get(0);
435 }
436 } else {
437 olsenName = region;
438 }
439 TimeZone zone = TimeZone.getTimeZone(olsenName);
440 return Boolean.valueOf(zone.inDaylightTime(date.getCalendar().getTime()));
441 }
442
443 /**
444 * Get the civil time offset to be made to a given date/time in a given
445 * civil timezone. For example, if the timezone is America/New_York, the civil time
446 * offset will be -5 hours (= 5 x 3600000 ms) during the winter and -4 hours
447 * (=4 x 3600000 ms) during the summer
448 *
449 * @param date the date/time in question. If this has no timezone, it is assumed
450 * to be in GMT.
451 * @param olsenName the Olsen name of the timezone, for example Europe/Lisbon
452 * @return the civil time offset, in milliseconds, to be applied to the given
453 * date/time
454 */
455
456 public static int civilTimeOffset(DateTimeValue date, String olsenName) {
457 TimeZone zone = TimeZone.getTimeZone(olsenName);
458 return zone.getOffset(date.getCalendar().getTime().getTime());
459 }
460
461 /**
462 * Get the TimeZone object for a given Olson timezone name
463 *
464 * @param olsonName an Olson timezone name, for example "Europe/London"
465 * @return the corresponding TimeZone object, or null if not available
466 */
467
468 public static TimeZone getNamedTimeZone(String olsonName) {
469 if (knownTimeZones.contains(olsonName)) {
470 return TimeZone.getTimeZone(olsonName);
471 } else {
472 return null;
473 }
474 }
475
476
477 /**
478 * Main method for testing
479 * @param args first argument: a dateTime value
480 * second argument: a country code
481 */
482
483 // public static void main(String[] args) {
484 // System.err.println(NamedTimeZone.getTimeZoneNameForDate((DateTimeValue)DateTimeValue.makeDateTimeValue(args[0]), args[1]));
485 // }
486
487 /**
488 * Main method to generate the list of timezone names known to Java
489 * @param args not used
490 */
491
492 // public static void main(String[] args) {
493 // String[] ids = TimeZone.getAvailableIDs(/* -5*60*60*1000 */);
494 // for (int i=0; i<ids.length; i++) {
495 // System.err.println(ids[i] + " - " + TimeZone.getTimeZone(ids[i]).getDisplayName(true, TimeZone.SHORT) +
496 // " - " + TimeZone.getTimeZone(ids[i]).getDisplayName(false, TimeZone.SHORT));
497 // }
498 // }
499 }
500
501 /*
502 Etc/GMT+12 - GMT-12:00 - GMT-12:00
503 Etc/GMT+11 - GMT-11:00 - GMT-11:00
504 MIT - WST - WST
505 Pacific/Apia - WST - WST
506 Pacific/Midway - SST - SST
507 Pacific/Niue - NUT - NUT
508 Pacific/Pago_Pago - SST - SST
509 Pacific/Samoa - SST - SST
510 US/Samoa - SST - SST
511 America/Adak - HADT - HAST
512 America/Atka - HADT - HAST
513 Etc/GMT+10 - GMT-10:00 - GMT-10:00
514 HST - HST - HST
515 Pacific/Fakaofo - TKT - TKT
516 Pacific/Honolulu - HST - HST
517 Pacific/Johnston - HST - HST
518 Pacific/Rarotonga - CKT - CKT
519 Pacific/Tahiti - TAHT - TAHT
520 SystemV/HST10 - HST - HST
521 US/Aleutian - HADT - HAST
522 US/Hawaii - HST - HST
523 Pacific/Marquesas - MART - MART
524 AST - AKDT - AKST
525 America/Anchorage - AKDT - AKST
526 America/Juneau - AKDT - AKST
527 America/Nome - AKDT - AKST
528 America/Yakutat - AKDT - AKST
529 Etc/GMT+9 - GMT-09:00 - GMT-09:00
530 Pacific/Gambier - GAMT - GAMT
531 SystemV/YST9 - AKST - AKST
532 SystemV/YST9YDT - AKDT - AKST
533 US/Alaska - AKDT - AKST
534 America/Dawson - PDT - PST
535 America/Ensenada - PDT - PST
536 America/Los_Angeles - PDT - PST
537 America/Tijuana - PDT - PST
538 America/Vancouver - PDT - PST
539 America/Whitehorse - PDT - PST
540 Canada/Pacific - PDT - PST
541 Canada/Yukon - PDT - PST
542 Etc/GMT+8 - GMT-08:00 - GMT-08:00
543 Mexico/BajaNorte - PDT - PST
544 PST - PDT - PST
545 PST8PDT - PDT - PST
546 Pacific/Pitcairn - PST - PST
547 SystemV/PST8 - PST - PST
548 SystemV/PST8PDT - PDT - PST
549 US/Pacific - PDT - PST
550 US/Pacific-New - PDT - PST
551 America/Boise - MDT - MST
552 America/Cambridge_Bay - MDT - MST
553 America/Chihuahua - MDT - MST
554 America/Dawson_Creek - MST - MST
555 America/Denver - MDT - MST
556 America/Edmonton - MDT - MST
557 America/Hermosillo - MST - MST
558 America/Inuvik - MDT - MST
559 America/Mazatlan - MDT - MST
560 America/Phoenix - MST - MST
561 America/Shiprock - MDT - MST
562 America/Yellowknife - MDT - MST
563 Canada/Mountain - MDT - MST
564 Etc/GMT+7 - GMT-07:00 - GMT-07:00
565 MST - MST - MST
566 MST7MDT - MDT - MST
567 Mexico/BajaSur - MDT - MST
568 Navajo - MDT - MST
569 PNT - MST - MST
570 SystemV/MST7 - MST - MST
571 SystemV/MST7MDT - MDT - MST
572 US/Arizona - MST - MST
573 US/Mountain - MDT - MST
574 America/Belize - CST - CST
575 America/Cancun - CDT - CST
576 America/Chicago - CDT - CST
577 America/Costa_Rica - CST - CST
578 America/El_Salvador - CST - CST
579 America/Guatemala - CST - CST
580 America/Indiana/Knox - CDT - CST
581 America/Indiana/Petersburg - CDT - CST
582 America/Indiana/Vincennes - CDT - CST
583 America/Knox_IN - EDT - EST
584 America/Managua - CST - CST
585 America/Menominee - CDT - CST
586 America/Merida - CDT - CST
587 America/Mexico_City - CDT - CST
588 America/Monterrey - CDT - CST
589 America/North_Dakota/Center - CDT - CST
590 America/North_Dakota/New_Salem - CDT - CST
591 America/Rainy_River - CDT - CST
592 America/Rankin_Inlet - CDT - CST
593 America/Regina - CST - CST
594 America/Swift_Current - CST - CST
595 America/Tegucigalpa - CST - CST
596 America/Winnipeg - CDT - CST
597 CST - CDT - CST
598 CST6CDT - CDT - CST
599 Canada/Central - CDT - CST
600 Canada/East-Saskatchewan - CST - CST
601 Canada/Saskatchewan - CST - CST
602 Chile/EasterIsland - EASST - EAST
603 Etc/GMT+6 - GMT-06:00 - GMT-06:00
604 Mexico/General - CDT - CST
605 Pacific/Easter - EASST - EAST
606 Pacific/Galapagos - GALT - GALT
607 SystemV/CST6 - CST - CST
608 SystemV/CST6CDT - CDT - CST
609 US/Central - CDT - CST
610 US/Indiana-Starke - EDT - EST
611 America/Bogota - COT - COT
612 America/Cayman - EST - EST
613 America/Coral_Harbour - EST - EST
614 America/Detroit - EDT - EST
615 America/Eirunepe - ACT - ACT
616 America/Fort_Wayne - EDT - EST
617 America/Grand_Turk - EDT - EST
618 America/Guayaquil - ECT - ECT
619 America/Havana - CDT - CST
620 America/Indiana/Indianapolis - EDT - EST
621 America/Indiana/Marengo - EDT - EST
622 America/Indiana/Vevay - EDT - EST
623 America/Indianapolis - EDT - EST
624 America/Iqaluit - EDT - EST
625 America/Jamaica - EST - EST
626 America/Kentucky/Louisville - EDT - EST
627 America/Kentucky/Monticello - EDT - EST
628 America/Lima - PET - PET
629 America/Louisville - EDT - EST
630 America/Montreal - EDT - EST
631 America/Nassau - EDT - EST
632 America/New_York - EDT - EST
633 America/Nipigon - EDT - EST
634 America/Panama - EST - EST
635 America/Pangnirtung - EDT - EST
636 America/Port-au-Prince - EDT - EST
637 America/Porto_Acre - ACT - ACT
638 America/Rio_Branco - ACT - ACT
639 America/Thunder_Bay - EDT - EST
640 America/Toronto - EDT - EST
641 Brazil/Acre - ACT - ACT
642 Canada/Eastern - EDT - EST
643 Cuba - CDT - CST
644 EST - EST - EST
645 EST5EDT - EDT - EST
646 Etc/GMT+5 - GMT-05:00 - GMT-05:00
647 IET - EDT - EST
648 Jamaica - EST - EST
649 SystemV/EST5 - EST - EST
650 SystemV/EST5EDT - EDT - EST
651 US/East-Indiana - EDT - EST
652 US/Eastern - EDT - EST
653 US/Michigan - EDT - EST
654 America/Anguilla - AST - AST
655 America/Antigua - AST - AST
656 America/Aruba - AST - AST
657 America/Asuncion - PYST - PYT
658 America/Barbados - AST - AST
659 America/Boa_Vista - AMT - AMT
660 America/Campo_Grande - AMST - AMT
661 America/Caracas - VET - VET
662 America/Cuiaba - AMST - AMT
663 America/Curacao - AST - AST
664 America/Dominica - AST - AST
665 America/Glace_Bay - ADT - AST
666 America/Goose_Bay - ADT - AST
667 America/Grenada - AST - AST
668 America/Guadeloupe - AST - AST
669 America/Guyana - GYT - GYT
670 America/Halifax - ADT - AST
671 America/La_Paz - BOT - BOT
672 America/Manaus - AMT - AMT
673 America/Martinique - AST - AST
674 America/Moncton - ADT - AST
675 America/Montserrat - AST - AST
676 America/Port_of_Spain - AST - AST
677 America/Porto_Velho - AMT - AMT
678 America/Puerto_Rico - AST - AST
679 America/Santiago - CLST - CLT
680 America/Santo_Domingo - AST - AST
681 America/St_Kitts - AST - AST
682 America/St_Lucia - AST - AST
683 America/St_Thomas - AST - AST
684 America/St_Vincent - AST - AST
685 America/Thule - ADT - AST
686 America/Tortola - AST - AST
687 America/Virgin - AST - AST
688 Antarctica/Palmer - CLST - CLT
689 Atlantic/Bermuda - ADT - AST
690 Atlantic/Stanley - FKST - FKT
691 Brazil/West - AMT - AMT
692 Canada/Atlantic - ADT - AST
693 Chile/Continental - CLST - CLT
694 Etc/GMT+4 - GMT-04:00 - GMT-04:00
695 PRT - AST - AST
696 SystemV/AST4 - AST - AST
697 SystemV/AST4ADT - ADT - AST
698 America/St_Johns - NDT - NST
699 CNT - NDT - NST
700 Canada/Newfoundland - NDT - NST
701 AGT - ART - ART
702 America/Araguaina - BRT - BRT
703 America/Argentina/Buenos_Aires - ART - ART
704 America/Argentina/Catamarca - ART - ART
705 America/Argentina/ComodRivadavia - ART - ART
706 America/Argentina/Cordoba - ART - ART
707 America/Argentina/Jujuy - ART - ART
708 America/Argentina/La_Rioja - ART - ART
709 America/Argentina/Mendoza - ART - ART
710 America/Argentina/Rio_Gallegos - ART - ART
711 America/Argentina/San_Juan - ART - ART
712 America/Argentina/Tucuman - ART - ART
713 America/Argentina/Ushuaia - ART - ART
714 America/Bahia - BRT - BRT
715 America/Belem - BRT - BRT
716 America/Buenos_Aires - ART - ART
717 America/Catamarca - ART - ART
718 America/Cayenne - GFT - GFT
719 America/Cordoba - ART - ART
720 America/Fortaleza - BRT - BRT
721 America/Godthab - WGST - WGT
722 America/Jujuy - ART - ART
723 America/Maceio - BRT - BRT
724 America/Mendoza - ART - ART
725 America/Miquelon - PMDT - PMST
726 America/Montevideo - UYT - UYT
727 America/Paramaribo - SRT - SRT
728 America/Recife - BRT - BRT
729 America/Rosario - ART - ART
730 America/Sao_Paulo - BRST - BRT
731 Antarctica/Rothera - ROTT - ROTT
732 BET - BRST - BRT
733 Brazil/East - BRST - BRT
734 Etc/GMT+3 - GMT-03:00 - GMT-03:00
735 America/Noronha - FNT - FNT
736 Atlantic/South_Georgia - GST - GST
737 Brazil/DeNoronha - FNT - FNT
738 Etc/GMT+2 - GMT-02:00 - GMT-02:00
739 America/Scoresbysund - EGST - EGT
740 Atlantic/Azores - AZOST - AZOT
741 Atlantic/Cape_Verde - CVT - CVT
742 Etc/GMT+1 - GMT-01:00 - GMT-01:00
743 Africa/Abidjan - GMT - GMT
744 Africa/Accra - GMT - GMT
745 Africa/Bamako - GMT - GMT
746 Africa/Banjul - GMT - GMT
747 Africa/Bissau - GMT - GMT
748 Africa/Casablanca - WET - WET
749 Africa/Conakry - GMT - GMT
750 Africa/Dakar - GMT - GMT
751 Africa/El_Aaiun - WET - WET
752 Africa/Freetown - GMT - GMT
753 Africa/Lome - GMT - GMT
754 Africa/Monrovia - GMT - GMT
755 Africa/Nouakchott - GMT - GMT
756 Africa/Ouagadougou - GMT - GMT
757 Africa/Sao_Tome - GMT - GMT
758 Africa/Timbuktu - GMT - GMT
759 America/Danmarkshavn - GMT - GMT
760 Atlantic/Canary - WEST - WET
761 Atlantic/Faeroe - WEST - WET
762 Atlantic/Madeira - WEST - WET
763 Atlantic/Reykjavik - GMT - GMT
764 Atlantic/St_Helena - GMT - GMT
765 Eire - IST - GMT
766 Etc/GMT - GMT+00:00 - GMT+00:00
767 Etc/GMT+0 - GMT+00:00 - GMT+00:00
768 Etc/GMT-0 - GMT+00:00 - GMT+00:00
769 Etc/GMT0 - GMT+00:00 - GMT+00:00
770 Etc/Greenwich - GMT - GMT
771 Etc/UCT - UTC - UTC
772 Etc/UTC - UTC - UTC
773 Etc/Universal - UTC - UTC
774 Etc/Zulu - UTC - UTC
775 Europe/Belfast - BST - GMT
776 Europe/Dublin - IST - GMT
777 Europe/Lisbon - WEST - WET
778 Europe/London - BST - GMT
779 GB - BST - GMT
780 GB-Eire - BST - GMT
781 GMT - GMT - GMT
782 GMT0 - GMT+00:00 - GMT+00:00
783 Greenwich - GMT - GMT
784 Iceland - GMT - GMT
785 Portugal - WEST - WET
786 UCT - UTC - UTC
787 UTC - UTC - UTC
788 Universal - UTC - UTC
789 WET - WEST - WET
790 Zulu - UTC - UTC
791 Africa/Algiers - CET - CET
792 Africa/Bangui - WAT - WAT
793 Africa/Brazzaville - WAT - WAT
794 Africa/Ceuta - CEST - CET
795 Africa/Douala - WAT - WAT
796 Africa/Kinshasa - WAT - WAT
797 Africa/Lagos - WAT - WAT
798 Africa/Libreville - WAT - WAT
799 Africa/Luanda - WAT - WAT
800 Africa/Malabo - WAT - WAT
801 Africa/Ndjamena - WAT - WAT
802 Africa/Niamey - WAT - WAT
803 Africa/Porto-Novo - WAT - WAT
804 Africa/Tunis - CEST - CET
805 Africa/Windhoek - WAST - WAT
806 Arctic/Longyearbyen - CEST - CET
807 Atlantic/Jan_Mayen - CEST - CET
808 CET - CEST - CET
809 ECT - CEST - CET
810 Etc/GMT-1 - GMT+01:00 - GMT+01:00
811 Europe/Amsterdam - CEST - CET
812 Europe/Andorra - CEST - CET
813 Europe/Belgrade - CEST - CET
814 Europe/Berlin - CEST - CET
815 Europe/Bratislava - CEST - CET
816 Europe/Brussels - CEST - CET
817 Europe/Budapest - CEST - CET
818 Europe/Copenhagen - CEST - CET
819 Europe/Gibraltar - CEST - CET
820 Europe/Ljubljana - CEST - CET
821 Europe/Luxembourg - CEST - CET
822 Europe/Madrid - CEST - CET
823 Europe/Malta - CEST - CET
824 Europe/Monaco - CEST - CET
825 Europe/Oslo - CEST - CET
826 Europe/Paris - CEST - CET
827 Europe/Prague - CEST - CET
828 Europe/Rome - CEST - CET
829 Europe/San_Marino - CEST - CET
830 Europe/Sarajevo - CEST - CET
831 Europe/Skopje - CEST - CET
832 Europe/Stockholm - CEST - CET
833 Europe/Tirane - CEST - CET
834 Europe/Vaduz - CEST - CET
835 Europe/Vatican - CEST - CET
836 Europe/Vienna - CEST - CET
837 Europe/Warsaw - CEST - CET
838 Europe/Zagreb - CEST - CET
839 Europe/Zurich - CEST - CET
840 MET - MEST - MET
841 Poland - CEST - CET
842 ART - EEST - EET
843 Africa/Blantyre - CAT - CAT
844 Africa/Bujumbura - CAT - CAT
845 Africa/Cairo - EEST - EET
846 Africa/Gaborone - CAT - CAT
847 Africa/Harare - CAT - CAT
848 Africa/Johannesburg - SAST - SAST
849 Africa/Kigali - CAT - CAT
850 Africa/Lubumbashi - CAT - CAT
851 Africa/Lusaka - CAT - CAT
852 Africa/Maputo - CAT - CAT
853 Africa/Maseru - SAST - SAST
854 Africa/Mbabane - SAST - SAST
855 Africa/Tripoli - EET - EET
856 Asia/Amman - EEST - EET
857 Asia/Beirut - EEST - EET
858 Asia/Damascus - EEST - EET
859 Asia/Gaza - EEST - EET
860 Asia/Istanbul - EEST - EET
861 Asia/Jerusalem - IDT - IST
862 Asia/Nicosia - EEST - EET
863 Asia/Tel_Aviv - IDT - IST
864 CAT - CAT - CAT
865 EET - EEST - EET
866 Egypt - EEST - EET
867 Etc/GMT-2 - GMT+02:00 - GMT+02:00
868 Europe/Athens - EEST - EET
869 Europe/Bucharest - EEST - EET
870 Europe/Chisinau - EEST - EET
871 Europe/Helsinki - EEST - EET
872 Europe/Istanbul - EEST - EET
873 Europe/Kaliningrad - EEST - EET
874 Europe/Kiev - EEST - EET
875 Europe/Mariehamn - EEST - EET
876 Europe/Minsk - EEST - EET
877 Europe/Nicosia - EEST - EET
878 Europe/Riga - EEST - EET
879 Europe/Simferopol - EEST - EET
880 Europe/Sofia - EEST - EET
881 Europe/Tallinn - EEST - EET
882 Europe/Tiraspol - EEST - EET
883 Europe/Uzhgorod - EEST - EET
884 Europe/Vilnius - EEST - EET
885 Europe/Zaporozhye - EEST - EET
886 Israel - IDT - IST
887 Libya - EET - EET
888 Turkey - EEST - EET
889 Africa/Addis_Ababa - EAT - EAT
890 Africa/Asmera - EAT - EAT
891 Africa/Dar_es_Salaam - EAT - EAT
892 Africa/Djibouti - EAT - EAT
893 Africa/Kampala - EAT - EAT
894 Africa/Khartoum - EAT - EAT
895 Africa/Mogadishu - EAT - EAT
896 Africa/Nairobi - EAT - EAT
897 Antarctica/Syowa - SYOT - SYOT
898 Asia/Aden - AST - AST
899 Asia/Baghdad - ADT - AST
900 Asia/Bahrain - AST - AST
901 Asia/Kuwait - AST - AST
902 Asia/Qatar - AST - AST
903 Asia/Riyadh - AST - AST
904 EAT - EAT - EAT
905 Etc/GMT-3 - GMT+03:00 - GMT+03:00
906 Europe/Moscow - MSD - MSK
907 Indian/Antananarivo - EAT - EAT
908 Indian/Comoro - EAT - EAT
909 Indian/Mayotte - EAT - EAT
910 W-SU - MSD - MSK
911 Asia/Riyadh87 - GMT+03:07 - GMT+03:07
912 Asia/Riyadh88 - GMT+03:07 - GMT+03:07
913 Asia/Riyadh89 - GMT+03:07 - GMT+03:07
914 Mideast/Riyadh87 - GMT+03:07 - GMT+03:07
915 Mideast/Riyadh88 - GMT+03:07 - GMT+03:07
916 Mideast/Riyadh89 - GMT+03:07 - GMT+03:07
917 Asia/Tehran - IRST - IRST
918 Iran - IRST - IRST
919 Asia/Baku - AZST - AZT
920 Asia/Dubai - GST - GST
921 Asia/Muscat - GST - GST
922 Asia/Tbilisi - GET - GET
923 Asia/Yerevan - AMST - AMT
924 Etc/GMT-4 - GMT+04:00 - GMT+04:00
925 Europe/Samara - SAMST - SAMT
926 Indian/Mahe - SCT - SCT
927 Indian/Mauritius - MUT - MUT
928 Indian/Reunion - RET - RET
929 NET - AMST - AMT
930 Asia/Kabul - AFT - AFT
931 Asia/Aqtau - AQTT - AQTT
932 Asia/Aqtobe - AQTT - AQTT
933 Asia/Ashgabat - TMT - TMT
934 Asia/Ashkhabad - TMT - TMT
935 Asia/Dushanbe - TJT - TJT
936 Asia/Karachi - PKT - PKT
937 Asia/Oral - ORAT - ORAT
938 Asia/Samarkand - UZT - UZT
939 Asia/Tashkent - UZT - UZT
940 Asia/Yekaterinburg - YEKST - YEKT
941 Etc/GMT-5 - GMT+05:00 - GMT+05:00
942 Indian/Kerguelen - TFT - TFT
943 Indian/Maldives - MVT - MVT
944 PLT - PKT - PKT
945 Asia/Calcutta - IST - IST
946 Asia/Colombo - LKT - LKT
947 IST - IST - IST
948 Asia/Katmandu - NPT - NPT
949 Antarctica/Mawson - MAWT - MAWT
950 Antarctica/Vostok - VOST - VOST
951 Asia/Almaty - ALMT - ALMT
952 Asia/Bishkek - KGT - KGT
953 Asia/Dacca - BDT - BDT
954 Asia/Dhaka - BDT - BDT
955 Asia/Novosibirsk - NOVST - NOVT
956 Asia/Omsk - OMSST - OMST
957 Asia/Qyzylorda - QYZT - QYZT
958 Asia/Thimbu - BTT - BTT
959 Asia/Thimphu - BTT - BTT
960 BST - BDT - BDT
961 Etc/GMT-6 - GMT+06:00 - GMT+06:00
962 Indian/Chagos - IOT - IOT
963 Asia/Rangoon - MMT - MMT
964 Indian/Cocos - CCT - CCT
965 Antarctica/Davis - DAVT - DAVT
966 Asia/Bangkok - ICT - ICT
967 Asia/Hovd - HOVST - HOVT
968 Asia/Jakarta - WIT - WIT
969 Asia/Krasnoyarsk - KRAST - KRAT
970 Asia/Phnom_Penh - ICT - ICT
971 Asia/Pontianak - WIT - WIT
972 Asia/Saigon - ICT - ICT
973 Asia/Vientiane - ICT - ICT
974 Etc/GMT-7 - GMT+07:00 - GMT+07:00
975 Indian/Christmas - CXT - CXT
976 VST - ICT - ICT
977 Antarctica/Casey - WST - WST
978 Asia/Brunei - BNT - BNT
979 Asia/Chongqing - CST - CST
980 Asia/Chungking - CST - CST
981 Asia/Harbin - CST - CST
982 Asia/Hong_Kong - HKT - HKT
983 Asia/Irkutsk - IRKST - IRKT
984 Asia/Kashgar - CST - CST
985 Asia/Kuala_Lumpur - MYT - MYT
986 Asia/Kuching - MYT - MYT
987 Asia/Macao - CST - CST
988 Asia/Macau - CST - CST
989 Asia/Makassar - CIT - CIT
990 Asia/Manila - PHT - PHT
991 Asia/Shanghai - CST - CST
992 Asia/Singapore - SGT - SGT
993 Asia/Taipei - CST - CST
994 Asia/Ujung_Pandang - CIT - CIT
995 Asia/Ulaanbaatar - ULAST - ULAT
996 Asia/Ulan_Bator - ULAST - ULAT
997 Asia/Urumqi - CST - CST
998 Australia/Perth - WST - WST
999 Australia/West - WST - WST
1000 CTT - CST - CST
1001 Etc/GMT-8 - GMT+08:00 - GMT+08:00
1002 Hongkong - HKT - HKT
1003 PRC - CST - CST
1004 Singapore - SGT - SGT
1005 Asia/Choibalsan - CHOST - CHOT
1006 Asia/Dili - TPT - TPT
1007 Asia/Jayapura - EIT - EIT
1008 Asia/Pyongyang - KST - KST
1009 Asia/Seoul - KST - KST
1010 Asia/Tokyo - JST - JST
1011 Asia/Yakutsk - YAKST - YAKT
1012 Etc/GMT-9 - GMT+09:00 - GMT+09:00
1013 JST - JST - JST
1014 Japan - JST - JST
1015 Pacific/Palau - PWT - PWT
1016 ROK - KST - KST
1017 ACT - CST - CST
1018 Australia/Adelaide - CST - CST
1019 Australia/Broken_Hill - CST - CST
1020 Australia/Darwin - CST - CST
1021 Australia/North - CST - CST
1022 Australia/South - CST - CST
1023 Australia/Yancowinna - CST - CST
1024 AET - EST - EST
1025 Antarctica/DumontDUrville - DDUT - DDUT
1026 Asia/Sakhalin - SAKST - SAKT
1027 Asia/Vladivostok - VLAST - VLAT
1028 Australia/ACT - EST - EST
1029 Australia/Brisbane - EST - EST
1030 Australia/Canberra - EST - EST
1031 Australia/Currie - EST - EST
1032 Australia/Hobart - EST - EST
1033 Australia/Lindeman - EST - EST
1034 Australia/Melbourne - EST - EST
1035 Australia/NSW - EST - EST
1036 Australia/Queensland - EST - EST
1037 Australia/Sydney - EST - EST
1038 Australia/Tasmania - EST - EST
1039 Australia/Victoria - EST - EST
1040 Etc/GMT-10 - GMT+10:00 - GMT+10:00
1041 Pacific/Guam - ChST - ChST
1042 Pacific/Port_Moresby - PGT - PGT
1043 Pacific/Saipan - ChST - ChST
1044 Pacific/Truk - TRUT - TRUT
1045 Pacific/Yap - YAPT - YAPT
1046 Australia/LHI - LHST - LHST
1047 Australia/Lord_Howe - LHST - LHST
1048 Asia/Magadan - MAGST - MAGT
1049 Etc/GMT-11 - GMT+11:00 - GMT+11:00
1050 Pacific/Efate - VUT - VUT
1051 Pacific/Guadalcanal - SBT - SBT
1052 Pacific/Kosrae - KOST - KOST
1053 Pacific/Noumea - NCT - NCT
1054 Pacific/Ponape - PONT - PONT
1055 SST - SBT - SBT
1056 Pacific/Norfolk - NFT - NFT
1057 Antarctica/McMurdo - NZDT - NZST
1058 Antarctica/South_Pole - NZDT - NZST
1059 Asia/Anadyr - ANAST - ANAT
1060 Asia/Kamchatka - PETST - PETT
1061 Etc/GMT-12 - GMT+12:00 - GMT+12:00
1062 Kwajalein - MHT - MHT
1063 NST - NZDT - NZST
1064 NZ - NZDT - NZST
1065 Pacific/Auckland - NZDT - NZST
1066 Pacific/Fiji - FJT - FJT
1067 Pacific/Funafuti - TVT - TVT
1068 Pacific/Kwajalein - MHT - MHT
1069 Pacific/Majuro - MHT - MHT
1070 Pacific/Nauru - NRT - NRT
1071 Pacific/Tarawa - GILT - GILT
1072 Pacific/Wake - WAKT - WAKT
1073 Pacific/Wallis - WFT - WFT
1074 NZ-CHAT - CHADT - CHAST
1075 Pacific/Chatham - CHADT - CHAST
1076 Etc/GMT-13 - GMT+13:00 - GMT+13:00
1077 Pacific/Enderbury - PHOT - PHOT
1078 Pacific/Tongatapu - TOT - TOT
1079 Etc/GMT-14 - GMT+14:00 - GMT+14:00
1080 Pacific/Kiritimati - LINT - LINT
1081
1082 */